From 8c3fcc23336beaa94a86747e5b00076dd4301821 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 11 Dec 2017 10:40:08 +0100 Subject: [PATCH] [EDF16107] : SIGSEGV client-side on reload on no more existing MEDfile --- .../ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx index 60e57e14..de01f7bb 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx @@ -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); } } -- 2.39.2