From 3cb560dd9ec4aeb6265df17916881860922338df Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 13 Apr 2006 14:03:03 +0000 Subject: [PATCH] Fix for IPAL12128 : CRASH after trying to run dataflow from the restored study with SALOME started with "--gui" key. --- src/Session/Session_Session_i.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2