]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #347: Avoid crash on empty feature
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 30 Dec 2014 12:42:21 +0000 (15:42 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 30 Dec 2014 12:42:21 +0000 (15:42 +0300)
src/XGUI/XGUI_PropertyPanel.cpp

index 2249d12a045e6c20f4a20f0ede0eb44cddf1c20b..d0b270536e7d21f4b6816381ec31294410057c50 100644 (file)
@@ -140,6 +140,8 @@ QWidget* XGUI_PropertyPanel::contentWidget()
 void XGUI_PropertyPanel::updateContentWidget(FeaturePtr theFeature)
 {
   // Invalid feature case on abort of the operation
+  if (theFeature.get() == NULL)
+    return;
   if(!theFeature->data())
     return;
   foreach(ModuleBase_ModelWidget* eachWidget, myWidgets)