From 8be4a1010ed4f7e6c390becff60e4b8e7295430a Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 10 Sep 2010 06:38:14 +0000 Subject: [PATCH] Crash --- src/LightApp/LightApp_SelectionMgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_SelectionMgr.cxx b/src/LightApp/LightApp_SelectionMgr.cxx index 39769d96e..a7b9b17d2 100644 --- a/src/LightApp/LightApp_SelectionMgr.cxx +++ b/src/LightApp/LightApp_SelectionMgr.cxx @@ -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( (*itr).operator->() ); - if ( subOwner->entry() == QString(IObject->getEntry()) ) + if ( subOwner && subOwner->entry() == QString(IObject->getEntry()) ) theIndex.Add( subOwner->index() ); } } -- 2.39.2