]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0021403: EDF 1972 VISU: Crash when dumping study V6_main_20111026
authorvsr <vsr@opencascade.com>
Tue, 25 Oct 2011 11:48:15 +0000 (11:48 +0000)
committervsr <vsr@opencascade.com>
Tue, 25 Oct 2011 11:48:15 +0000 (11:48 +0000)
src/VISU_I/VISU_DumpPython.cc

index 161a9cd088b6bced8bbc6146a4974f67ce94817f..e0a7b42eafeaec49c680a9cd01f82c086ce68776 100644 (file)
@@ -1980,6 +1980,9 @@ namespace VISU
               continue;
             
             Result_i* aResult = aDevice->GetCResult();
+           if (!aResult)
+             continue;
+
             std::string aResultEntry = aResult->GetEntry();
             std::string aResultName = theEntry2NameMap[aResultEntry];