From 42ddeae402e94a2524f921930f82dfae4372e75d Mon Sep 17 00:00:00 2001 From: gdd Date: Tue, 27 Jul 2010 09:51:30 +0000 Subject: [PATCH] Study can be NULL => do not write MESSAGE --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- 2.39.2