From: azv Date: Wed, 3 Oct 2018 12:35:29 +0000 (+0300) Subject: Fix crash in the Coincidence presentation (issue #2119) X-Git-Tag: CEA_2018-2~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7ea948c622f764e3290ffdcb11197c2ebf811cfd;p=modules%2Fshaper.git Fix crash in the Coincidence presentation (issue #2119) --- diff --git a/src/SketcherPrs/SketcherPrs_Coincident.cpp b/src/SketcherPrs/SketcherPrs_Coincident.cpp index d5c13571e..acf5d24a7 100644 --- a/src/SketcherPrs/SketcherPrs_Coincident.cpp +++ b/src/SketcherPrs/SketcherPrs_Coincident.cpp @@ -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;