From: sln Date: Wed, 23 May 2007 13:06:05 +0000 (+0000) Subject: Protection from exception. Verification on null added in SetTitle method (NPAL15944) X-Git-Tag: T15881~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c354447cffc37860c0337aca6799f0385a98528a;p=modules%2Fvisu.git Protection from exception. Verification on null added in SetTitle method (NPAL15944) --- diff --git a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc index a3f960b6..cd1484f2 100644 --- a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc +++ b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc @@ -181,6 +181,8 @@ VISU::ScalarMapOnDeformedShape_i void VISU::ScalarMapOnDeformedShape_i::SetTitle(const char* theTitle) { std::strstream aStream; + if ( !myScalarField ) + return; const VISU::TValField& aValField = myScalarField->myValField; const VISU::PValForTime aValForTime = aValField.find(myScalarIteration)->second; if(aValForTime){