From: azv Date: Fri, 15 Dec 2017 05:10:32 +0000 (+0300) Subject: Issue #2366: Fatal error when edit parameters X-Git-Tag: V_2.10.0RC~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f9ffeab4a042e03e93c961347874c29fd570cf0;p=modules%2Fshaper.git Issue #2366: Fatal error when edit parameters Fix crash while converting Folder to the Parameter feature --- diff --git a/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp b/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp index cebd78a43..96e10edb1 100644 --- a/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp +++ b/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp @@ -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); } }