]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Prevent SIGSEGV in Save in case dump study failed.
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 25 Jan 2021 14:05:33 +0000 (15:05 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 25 Jan 2021 14:05:33 +0000 (15:05 +0100)
src/XGUI/XGUI_OperationMgr.cpp

index 927d772cb5f5f7dde3da9e5dd31bbbcacd99f08a..ed995aded535b5aefb483ba7456a09f806ccf838 100644 (file)
@@ -362,7 +362,7 @@ bool XGUI_OperationMgr::canStopOperation(ModuleBase_Operation* theOperation,
   if (theOperation && theOperation->isModified()) {
     ModuleBase_OperationFeature* aOp = dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
     std::string aContext;
-    if (aOp)
+    if (aOp && aOp->feature())
       aContext = aOp->feature()->getKind();
     QString aTitle = Config_Translator::translate(aContext,
       theOperation->getDescription()->description().toStdString()).c_str();