{
// mkr : IPAL14030
std::strstream aStream;
+ if ( !myField )
+ return;
const VISU::TValField& aValField = myField->myValField;
- const VISU::PValForTime aValForTime = aValField.find(myIteration)->second;
+ VISU::TValField::const_iterator anIter = aValField.find(myIteration);
+ if ( anIter == aValField.end() )
+ return;
+ const VISU::PValForTime aValForTime = anIter->second;
aStream<<theTitle<<" "<<VISU_Convertor::GenerateName(aValForTime->myTime)<<std::ends;
std::string aScalarBarTitle = aStream.str();
if(myTitle != theTitle || myScalarBarTitle != aScalarBarTitle){
if ( !myScalarField )
return;
const VISU::TValField& aValField = myScalarField->myValField;
- const VISU::PValForTime aValForTime = aValField.find(myScalarIteration)->second;
+ VISU::TValField::const_iterator anIter = aValField.find(myScalarIteration);
+ if ( anIter == aValField.end() )
+ return;
+ const VISU::PValForTime aValForTime = anIter->second;
if(aValForTime){
aStream<<theTitle<<" "<<VISU_Convertor::GenerateName(aValForTime->myTime)<<std::ends;
std::string aScalarBarTitle = aStream.str();