From 158418c65edb46660b91faf207dbe532436259df Mon Sep 17 00:00:00 2001 From: sln Date: Thu, 23 Sep 2010 08:54:02 +0000 Subject: [PATCH] getStudy() method. Verification of root object on NULL added --- src/LightApp/LightApp_DataModel.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2