]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2366: Fatal error when edit parameters
authorazv <azv@opencascade.com>
Fri, 15 Dec 2017 05:10:32 +0000 (08:10 +0300)
committerazv <azv@opencascade.com>
Fri, 15 Dec 2017 05:10:32 +0000 (08:10 +0300)
Fix crash while converting Folder to the Parameter feature

src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp

index cebd78a43dae2f0407f18aea9ffe63608a60a9ec..96e10edb14c720706a7f03058c5e5c9059301d4f 100644 (file)
@@ -311,7 +311,7 @@ void ParametersPlugin_WidgetParamsMgr::updateParametersFeatures()
   int aNbFeatures = aDoc->numInternalFeatures();
   for (int i = 0; i < aNbFeatures; i++) {
     aParamFeature = aDoc->internalFeature(i);
-    if (aParamFeature->getKind() == ParametersPlugin_Parameter::ID()) {
+    if (aParamFeature && aParamFeature->getKind() == ParametersPlugin_Parameter::ID()) {
       myParametersList.append(aParamFeature);
     }
   }