From c55db497085b1fd7a911b8ddebd14d0539dbc88d Mon Sep 17 00:00:00 2001 From: asv Date: Mon, 27 Mar 2006 14:03:41 +0000 Subject: [PATCH] an obvious bug (SObject not checked for null) is fixed. --- src/VISUGUI/VisuGUI_PopupTools.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2