]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix crash when implicitly activate "light" module
authorvsr <vsr@opencascade.com>
Wed, 27 Sep 2017 13:40:19 +0000 (16:40 +0300)
committervsr <vsr@opencascade.com>
Wed, 27 Sep 2017 13:43:15 +0000 (16:43 +0300)
src/LightApp/LightApp_DataModel.cxx

index ccef46ec0d4e1b8fdcd8b475b6c78c79e8798f87..88a29bdb11ef259ab8078c5c6ca0b5114016d2da 100644 (file)
@@ -110,7 +110,7 @@ void LightApp_DataModel::build()
 void LightApp_DataModel::updateWidgets()
 {
   LightApp_Application* app = dynamic_cast<LightApp_Application*>( module()->application() );
-  if ( app )
+  if ( app && app->objectBrowser() )
     app->objectBrowser()->updateTree( 0, false );
 }