}
}
}
- updateTree( sobj, aSStudy );
+ if ( sobj && aSStudy )
+ updateTree( sobj, aSStudy );
}
//================================================================
//================================================================
SUIT_DataObject* SalomeApp_DataModel::synchronize( const _PTR( SComponent )& sobj, SalomeApp_Study* study )
{
- if( !study || !study->root() )
+ if( !study || !study->root() || !sobj )
return 0;
DataObjectList ch; study->root()->children( ch );