From: sln Date: Thu, 23 Sep 2010 08:54:02 +0000 (+0000) Subject: getStudy() method. Verification of root object on NULL added X-Git-Tag: DIAGRAM_0_1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=158418c65edb46660b91faf207dbe532436259df;p=modules%2Fgui.git getStudy() method. Verification of root object on NULL added --- diff --git a/src/LightApp/LightApp_DataModel.cxx b/src/LightApp/LightApp_DataModel.cxx index 5074d475f..cccf466c9 100644 --- a/src/LightApp/LightApp_DataModel.cxx +++ b/src/LightApp/LightApp_DataModel.cxx @@ -152,6 +152,8 @@ LightApp_Module* LightApp_DataModel::getModule() const */ LightApp_Study* LightApp_DataModel::getStudy() const { + if ( !root() ) + return 0; LightApp_RootObject* aRoot = dynamic_cast( root()->root() ); if ( !aRoot ) return 0;