From d6156f1061a68357b24fe50cb469676c75bad414 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 31 Jan 2014 13:36:46 +0000 Subject: [PATCH] enable work w/o a study --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 2ba902c..08b5521 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -255,7 +255,7 @@ BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF(int hypId, int studyId, myStudy = NULL; myStudy = aStudyMgr->GetStudyByID(_studyId); - if (myStudy) + if ( !myStudy->_is_nil() ) MESSAGE("myStudy->StudyId() = " << myStudy->StudyId()); /* Initialize the Python interpreter */ -- 2.39.2