]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Insert check for reparentChildren
authornds <nds@opencascade.com>
Thu, 3 Nov 2005 08:08:19 +0000 (08:08 +0000)
committernds <nds@opencascade.com>
Thu, 3 Nov 2005 08:08:19 +0000 (08:08 +0000)
src/SUIT/SUIT_DataObject.cxx

index 7fdc046317f1d9960da3b4f8c1a4525dce3cdbd9..1987bbd27e16c1041d04c1898ec9d7a904f9534b 100755 (executable)
@@ -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 )