Salome HOME
Issue #3047: Rollback modifications dedicated to property panel performance
[modules/shaper.git] / src / XGUI / XGUI_ContextMenuMgr.cpp
index b1fadf67129ea2d66fb6b1571a25d16c88ff4c46..00cf24153ffbe8d7edd5e460e3d74bbe0ab5b0de 100644 (file)
@@ -508,6 +508,8 @@ void XGUI_ContextMenuMgr::updateViewerMenu()
     ObjectPtr aObject;
     foreach(ModuleBase_ViewerPrsPtr aPrs, aPrsList) {
       aObject = aPrs->object();
+      if (!aObject.get())
+        continue;
       GeomShapePtr aShape = aPrs->shape();
       if (aObject->isDisplayed()) {
         isVisible = true;