// entry is a normal entry - it should be "decoded" (setting base adress of component)
QString entry( ip->decodeEntry( *entIt ).c_str() );
+ //SRN: Added a check that the entry corresponds to Standard_Real object in the Study
+ // as the object may be deleted or modified after the visual state is saved.
+ _PTR(SObject) so = studyDS->FindObjectID(entry.latin1());
+ if(!so) continue; //Skip the not existent entry
+
for ( ; namesIt != paramNames.end(); ++namesIt, ++valuesIt ) {
std::string viewerType = ::getParam( *namesIt, ViewerType );