From: nds Date: Thu, 3 Nov 2005 08:08:19 +0000 (+0000) Subject: Insert check for reparentChildren X-Git-Tag: V3_1_0a3~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b59fbe38066a1476113f0318218e5a43359eb455;p=modules%2Fgui.git Insert check for reparentChildren --- diff --git a/src/SUIT/SUIT_DataObject.cxx b/src/SUIT/SUIT_DataObject.cxx index 7fdc04631..1987bbd27 100755 --- a/src/SUIT/SUIT_DataObject.cxx +++ b/src/SUIT/SUIT_DataObject.cxx @@ -276,6 +276,9 @@ bool SUIT_DataObject::replaceChild( SUIT_DataObject* src, SUIT_DataObject* trg, void SUIT_DataObject::reparentChildren( const SUIT_DataObject* obj ) { + if ( !obj ) + return; + DataObjectList lst; obj->children( lst ); for ( DataObjectListIterator it( lst ); it.current(); ++it )