From: gdd Date: Tue, 27 Jul 2010 09:51:30 +0000 (+0000) Subject: Study can be NULL => do not write MESSAGE X-Git-Tag: end_translate_resources_09Jul10~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42ddeae402e94a2524f921930f82dfae4372e75d;p=plugins%2Fblsurfplugin.git Study can be NULL => do not write MESSAGE --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index b627a7c..a8bd70e 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -243,7 +243,8 @@ BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF(int hypId, int studyId, myStudy = NULL; myStudy = aStudyMgr->GetStudyByID(_studyId); - MESSAGE("myStudy->StudyId() = " << myStudy->StudyId()); + if (myStudy) + MESSAGE("myStudy->StudyId() = " << myStudy->StudyId()); /* Initialize the Python interpreter */ assert(Py_IsInitialized());