From c6745a6b1ad00c0285fab5aeac2cb0d57afef5cc Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 26 Nov 2019 15:47:10 +0300 Subject: [PATCH] Issue #3086: Avoid crash when FeatureInfo is null. --- src/XGUI/XGUI_Workshop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2