]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash in the Coincidence presentation (issue #2119)
authorazv <azv@opencascade.com>
Wed, 3 Oct 2018 12:35:29 +0000 (15:35 +0300)
committerazv <azv@opencascade.com>
Wed, 3 Oct 2018 12:36:02 +0000 (15:36 +0300)
src/SketcherPrs/SketcherPrs_Coincident.cpp

index d5c13571e905bccec9a2d2642ae5b4d861f17a46..acf5d24a7d3a93df5e5b9582523b5c81c5b89178 100644 (file)
@@ -129,7 +129,7 @@ void SketcherPrs_Coincident::Compute(
       if (aSub->getKind() == SketchPlugin_ConstraintCoincidence::ID() &&
         aSub.get() != myConstraint) {
         aP = getCoincidencePoint(aSub.get());
-        if (aP->isEqual(aPnt)) {
+        if (aP && aP->isEqual(aPnt)) {
           aIsEdge = hasEdge(aSub.get());
           if (aIsEdge)
             break;