# HG changeset patch # User Sebastien Jodogne # Date 1561134491 -7200 # Node ID 77702c19a2fad01a424e12d95cd8f439aa474ccb # Parent fbcde0d66ed8b775bde607592d9fcb1a5138e7ef fix issue #143 diff -r fbcde0d66ed8 -r 77702c19a2fa Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 21 17:19:33 2019 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 21 18:28:11 2019 +0200 @@ -334,13 +334,10 @@ void OrthancString::Assign(char* str) { - if (str == NULL) + Clear(); + + if (str != NULL) { - ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); - } - else - { - Clear(); str_ = str; } }