]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for IPAL12128 : CRASH after trying to run dataflow from the restored study with...
authormkr <mkr@opencascade.com>
Thu, 13 Apr 2006 14:03:03 +0000 (14:03 +0000)
committermkr <mkr@opencascade.com>
Thu, 13 Apr 2006 14:03:03 +0000 (14:03 +0000)
src/Session/Session_Session_i.cxx

index 1a9662eea467dccda36069ff6ecb7a04ef3199bd..ebc51fd664962d98cefc4257bea957f035dfa70e 100755 (executable)
@@ -209,7 +209,8 @@ CORBA::Long SALOME_Session_i::GetActiveStudyId()
 {
   long aStudyId=-1;
   if ( SUIT_Session::session() && SUIT_Session::session()->activeApplication() ) {
-    aStudyId = SUIT_Session::session()->activeApplication()->activeStudy()->id();
+    if ( SUIT_Session::session()->activeApplication()->activeStudy() ) // mkr : IPAL12128
+      aStudyId = SUIT_Session::session()->activeApplication()->activeStudy()->id();
   }
   return aStudyId;
 }