From: vsv Date: Tue, 25 Aug 2015 12:32:43 +0000 (+0300) Subject: Issue #790: prevent crash on detach X-Git-Tag: V_1.4.0_beta4~250 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c05e3bd1c650e395a4917d7f65a121222845dc38;p=modules%2Fshaper.git Issue #790: prevent crash on detach --- diff --git a/src/PartSet/PartSet_MenuMgr.cpp b/src/PartSet/PartSet_MenuMgr.cpp index 9b5919c20..0d8c0cc9a 100644 --- a/src/PartSet/PartSet_MenuMgr.cpp +++ b/src/PartSet/PartSet_MenuMgr.cpp @@ -291,6 +291,8 @@ void PartSet_MenuMgr::onLineDetach(QAction* theAction) } else { aPnt = PartSet_Tools::getPoint(aConstrFeature, SketchPlugin_ConstraintCoincidence::ENTITY_B()); + if (aPnt.get() == NULL) + return; aP = aPnt->impl(); if (aOrig->isEqual(aPnt)) { aToDelFeatures.append(aConstrFeature);