From fdb730fc4abf2ece4fa76d800eeaf7d2b821d966 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Mon, 25 Jan 2021 15:05:33 +0100 Subject: [PATCH] Prevent SIGSEGV in Save in case dump study failed. --- src/XGUI/XGUI_OperationMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2