From: vsv Date: Tue, 26 Nov 2019 12:47:10 +0000 (+0300) Subject: Issue #3086: Avoid crash when FeatureInfo is null. X-Git-Tag: V9_5_0a1~161 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6745a6b1ad00c0285fab5aeac2cb0d57afef5cc;p=modules%2Fshaper.git Issue #3086: Avoid crash when FeatureInfo is null. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 2dd70bb5a..4d2f003b1 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -775,7 +775,7 @@ void XGUI_Workshop::fillPropertyPanel(ModuleBase_Operation* theOperation) myErrorMgr->setPropertyPanel(myPropertyPanel); theOperation->setHideFacesVisible(myFacesPanel->isVisible()); - if (aFeatureInfo->isHideFacesPanel() && !myFacesPanel->isVisible()) + if (aFeatureInfo.get() && aFeatureInfo->isHideFacesPanel() && !myFacesPanel->isVisible()) myFacesPanel->show(); showPanel(myPropertyPanel); }