]> 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)
committervsv <vsv@opencascade.com>
Wed, 6 Nov 2019 08:27:32 +0000 (11:27 +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();