Salome HOME
Merge branch 'V7_dev' into V8_0_0_BR
[modules/gui.git] / src / SALOME_PYQT / SalomePyQt / SalomePyQt.cxx
index 609aaf77c6f82587e5688f145014dc2b5bc7f83f..389409921f543aa777a474b319c99e54c2b26f54 100644 (file)
@@ -500,7 +500,7 @@ public:
   virtual void Execute()
   {
     LightApp_Application* anApp = getApplication();
-    if ( anApp ) {
+    if ( anApp && anApp->objectBrowser() ) {
       myResult = anApp->objectBrowser()->treeView();
     }
   }