]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Crash
authordmv <dmv@opencascade.com>
Fri, 10 Sep 2010 06:38:14 +0000 (06:38 +0000)
committerdmv <dmv@opencascade.com>
Fri, 10 Sep 2010 06:38:14 +0000 (06:38 +0000)
src/LightApp/LightApp_SelectionMgr.cxx

index 39769d96e452c8b790638cc369092e324f601e72..a7b9b17d20ac0d3446daa93781ea1ed1fe028180 100644 (file)
@@ -187,7 +187,7 @@ void LightApp_SelectionMgr::GetIndexes( const Handle(SALOME_InteractiveObject)&
   for ( SUIT_DataOwnerPtrList::const_iterator itr = aList.begin(); itr != aList.end(); ++itr )
   {
     LightApp_DataSubOwner* subOwner = dynamic_cast<LightApp_DataSubOwner*>( (*itr).operator->() );
-    if ( subOwner->entry() == QString(IObject->getEntry()) )
+    if ( subOwner && subOwner->entry() == QString(IObject->getEntry()) )
       theIndex.Add( subOwner->index() );
   }
 }