]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3086: Avoid crash when FeatureInfo is null.
authorvsv <vsv@opencascade.com>
Tue, 26 Nov 2019 12:47:10 +0000 (15:47 +0300)
committervsv <vsv@opencascade.com>
Tue, 26 Nov 2019 12:47:10 +0000 (15:47 +0300)
src/XGUI/XGUI_Workshop.cpp

index 2dd70bb5ab53d4c85dbedab16b6abb5881c3eeaf..4d2f003b1f07c4e339be6e0ded00f2eea62a48d6 100644 (file)
@@ -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);
 }