Salome HOME
Issue #1865: Create a field
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSelector.cpp
index a7b536db16c973eb6ed451ad07f18b71cd33312c..11811c4220061e53355709ed179bf44471f4fd49 100755 (executable)
@@ -211,6 +211,8 @@ void ModuleBase_WidgetSelector::deactivate()
 
   /// clear temporary cash
   AttributePtr anAttribute = attribute();
+  if (!anAttribute.get())
+    return;
   std::string aType = anAttribute->attributeType();
   if (anAttribute->attributeType() == ModelAPI_AttributeSelection::typeId()) {
     AttributeSelectionPtr aSelectAttr =