if(anIO->hasEntry())
{
TObjectInfo anObjectInfo = GetObjectByEntry(aStudy, anIO->getEntry());
- TSelectionItem aSelectionItem;
- aSelectionItem.myObjectInfo = anObjectInfo;
- aSelectionItem.myIO = anIO;
- aSelectionInfo.push_back(aSelectionItem);
+ if(anObjectInfo.mySObject){
+ TSelectionItem aSelectionItem;
+ aSelectionItem.myObjectInfo = anObjectInfo;
+ aSelectionItem.myIO = anIO;
+ aSelectionInfo.push_back(aSelectionItem);
+ }
}
anIter.Next(); // MULTIPR fixed
}
GetStorableMap(_PTR(SObject) theSObject)
{
Storable::TRestoringMap aMap;
- _PTR(GenericAttribute) anAttr;
- if(theSObject->FindAttribute(anAttr,"AttributeString")){
- _PTR(AttributeString) aComment (anAttr);
- std::string aValue = aComment->Value();
- VISU::Storable::StrToMap(aValue.c_str(), aMap);
+ if(theSObject){
+ _PTR(GenericAttribute) anAttr;
+ if(theSObject->FindAttribute(anAttr,"AttributeString")){
+ _PTR(AttributeString) aComment (anAttr);
+ std::string aValue = aComment->Value();
+ VISU::Storable::StrToMap(aValue.c_str(), aMap);
+ }
}
return aMap;
}