]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
[EDF16107] : SIGSEGV client-side on reload on no more existing MEDfile
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 11 Dec 2017 09:40:08 +0000 (10:40 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 11 Dec 2017 09:40:08 +0000 (10:40 +0100)
src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx

index 60e57e14ff12c22fd8d75e37840e0a325a0efb66..de01f7bb81ea654e6a4fb99c78b88d1bac736c34 100644 (file)
@@ -216,7 +216,9 @@ void pqMEDReaderTimesFlagsWidget::UpdateTimeSteps()
 
     // Updating times steps using leaf id
     QStringList dts, its, tts;
-    pqMedReaderGraphUtils::getCurrentTS(g, tsId, dts, its, tts);
-    this->TimesVectWidget->setItems(dts, its, tts);
+    if(g)
+      pqMedReaderGraphUtils::getCurrentTS(g, tsId, dts, its, tts);
+    if(this->TimesVectWidget)
+      this->TimesVectWidget->setItems(dts, its, tts);
     }
 }