From 96699510a396c101b20ccd4bd2708940fe578feb Mon Sep 17 00:00:00 2001 From: sln Date: Thu, 24 May 2007 09:12:43 +0000 Subject: [PATCH] Protection from exception. Additional verification added in setTitle method (NPAL15945) --- src/VISU_I/VISU_ColoredPrs3d_i.cc | 7 ++++++- src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 309473f1..acc98b04 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -302,8 +302,13 @@ VISU::ColoredPrs3d_i { // 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<myTime)<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<myTime)<