From: Anthony Geay Date: Mon, 11 Dec 2017 09:40:08 +0000 (+0100) Subject: [EDF16107] : SIGSEGV client-side on reload on no more existing MEDfile X-Git-Tag: V9_0_0~2^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c3fcc23336beaa94a86747e5b00076dd4301821;p=modules%2Fparavis.git [EDF16107] : SIGSEGV client-side on reload on no more existing MEDfile --- 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); } }