From: Christophe Bourcier Date: Mon, 25 Jan 2021 14:05:33 +0000 (+0100) Subject: Prevent SIGSEGV in Save in case dump study failed. X-Git-Tag: V9_7_0a1~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fdb730fc4abf2ece4fa76d800eeaf7d2b821d966;p=modules%2Fshaper.git Prevent SIGSEGV in Save in case dump study failed. --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index 927d772cb..ed995aded 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -362,7 +362,7 @@ bool XGUI_OperationMgr::canStopOperation(ModuleBase_Operation* theOperation, if (theOperation && theOperation->isModified()) { ModuleBase_OperationFeature* aOp = dynamic_cast(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();