From: vsr Date: Wed, 27 Sep 2017 13:40:19 +0000 (+0300) Subject: Fix crash when implicitly activate "light" module X-Git-Tag: V8_4_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f2a4b4cdbff322265b1893d8a54df139690b0ef;p=modules%2Fgui.git Fix crash when implicitly activate "light" module --- diff --git a/src/LightApp/LightApp_DataModel.cxx b/src/LightApp/LightApp_DataModel.cxx index ccef46ec0..88a29bdb1 100644 --- a/src/LightApp/LightApp_DataModel.cxx +++ b/src/LightApp/LightApp_DataModel.cxx @@ -110,7 +110,7 @@ void LightApp_DataModel::build() void LightApp_DataModel::updateWidgets() { LightApp_Application* app = dynamic_cast( module()->application() ); - if ( app ) + if ( app && app->objectBrowser() ) app->objectBrowser()->updateTree( 0, false ); }