From 7ea948c622f764e3290ffdcb11197c2ebf811cfd Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 3 Oct 2018 15:35:29 +0300 Subject: [PATCH] Fix crash in the Coincidence presentation (issue #2119) --- src/SketcherPrs/SketcherPrs_Coincident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2