]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
an obvious bug (SObject not checked for null) is fixed.
authorasv <asv@opencascade.com>
Mon, 27 Mar 2006 14:03:41 +0000 (14:03 +0000)
committerasv <asv@opencascade.com>
Mon, 27 Mar 2006 14:03:41 +0000 (14:03 +0000)
src/VISUGUI/VisuGUI_PopupTools.cxx

index 20c99b44d9c346d06cd3baaf21376075d59f7a61..0f5c8c8bf00591c12a932367f0641bbc17bb51a6 100644 (file)
@@ -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;