From: asv Date: Mon, 27 Mar 2006 14:03:41 +0000 (+0000) Subject: an obvious bug (SObject not checked for null) is fixed. X-Git-Tag: mergeto_OCC_debug_for_3_2_0b1_07Apr06~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c55db497085b1fd7a911b8ddebd14d0539dbc88d;p=modules%2Fvisu.git an obvious bug (SObject not checked for null) is fixed. --- diff --git a/src/VISUGUI/VisuGUI_PopupTools.cxx b/src/VISUGUI/VisuGUI_PopupTools.cxx index 20c99b44..0f5c8c8b 100644 --- a/src/VISUGUI/VisuGUI_PopupTools.cxx +++ b/src/VISUGUI/VisuGUI_PopupTools.cxx @@ -365,6 +365,8 @@ bool VisuGUI_Selection::isVisuComponent( const int ind ) const return false; _PTR(SObject) obj = study->studyDS()->FindObjectID( entry( ind ).latin1() ); + if ( !obj ) + return false; CORBA::Object_var anObj = VISU::ClientSObjectToObject( obj ); if( CORBA::is_nil( anObj ) ) return false;