]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Protection from exception. Verification on null added in SetTitle method (NPAL15944)
authorsln <sln@opencascade.com>
Wed, 23 May 2007 13:06:05 +0000 (13:06 +0000)
committersln <sln@opencascade.com>
Wed, 23 May 2007 13:06:05 +0000 (13:06 +0000)
src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc

index a3f960b6cd73c30039c8ea7af871af302cdc1ef9..cd1484f256b4311b6ef047f065ad5677c67c8b7c 100644 (file)
@@ -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){