]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3048: Fatal error when create group using filter without argument
authorazv <azv@opencascade.com>
Wed, 16 Oct 2019 11:28:07 +0000 (14:28 +0300)
committerazv <azv@opencascade.com>
Wed, 16 Oct 2019 11:28:57 +0000 (14:28 +0300)
src/FiltersPlugin/FiltersPlugin_OnPlaneSide.cpp

index 54f8c93918e219d94d18e583a697b238d3c59b75..cfbdff3819c945571ecf457e2fa1f3fbd898e5a8 100644 (file)
@@ -42,8 +42,12 @@ bool FiltersPlugin_OnPlaneSide::isOk(const GeomShapePtr& theShape, const ResultP
   if (!aList.get())
     return false;
   GeomShapePtr aPlanarShape = aList->value();
-  if (!aPlanarShape)
-    aPlanarShape = aList->context()->shape();
+  if (!aPlanarShape) {
+    ResultPtr aContext = aList->context();
+    if (!aContext)
+      return false;
+    aPlanarShape = aContext->shape();
+  }
 
   GeomPlanePtr aPlane = aPlanarShape->face()->getPlane();
   GeomPointPtr aPlaneLoc = aPlane->location();