From c354447cffc37860c0337aca6799f0385a98528a Mon Sep 17 00:00:00 2001 From: sln Date: Wed, 23 May 2007 13:06:05 +0000 Subject: [PATCH] Protection from exception. Verification on null added in SetTitle method (NPAL15944) --- src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc | 2 ++ 1 file changed, 2 insertions(+) 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){ -- 2.39.2