From: mkr Date: Thu, 13 Apr 2006 14:03:03 +0000 (+0000) Subject: Fix for IPAL12128 : CRASH after trying to run dataflow from the restored study with... X-Git-Tag: T3_2_0b1_pre1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3cb560dd9ec4aeb6265df17916881860922338df;p=modules%2Fgui.git Fix for IPAL12128 : CRASH after trying to run dataflow from the restored study with SALOME started with "--gui" key. --- diff --git a/src/Session/Session_Session_i.cxx b/src/Session/Session_Session_i.cxx index 1a9662eea..ebc51fd66 100755 --- a/src/Session/Session_Session_i.cxx +++ b/src/Session/Session_Session_i.cxx @@ -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; }