Salome HOME
Issue #2812: Fix for point creation if pre-selection exists
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetPointInput.cpp
index 9099925f512219b762f8625d89445fcdbbda55c9..11b96c37c5d1005aa46b27ba63066fc747681985 100644 (file)
@@ -224,7 +224,7 @@ bool ModuleBase_WidgetPointInput
 {
   if (theValues.size() == 1) {
     GeomShapePtr aShape = theValues.first()->shape();
-    if (aShape->isVertex()) {
+    if (aShape.get() && aShape->isVertex()) {
       GeomVertexPtr aVertex(new GeomAPI_Vertex(aShape));
       GeomPointPtr aPnt = aVertex->point();
       myXSpin->setValue(aPnt->x());