From b59fbe38066a1476113f0318218e5a43359eb455 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 3 Nov 2005 08:08:19 +0000 Subject: [PATCH] Insert check for reparentChildren --- src/SUIT/SUIT_DataObject.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ) -- 2.39.2