]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Study can be NULL => do not write MESSAGE
authorgdd <gdd>
Tue, 27 Jul 2010 09:51:30 +0000 (09:51 +0000)
committergdd <gdd>
Tue, 27 Jul 2010 09:51:30 +0000 (09:51 +0000)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index b627a7cbe7e1887b2a8f7026d4123aa21de167f0..a8bd70ea6782e1dc61c342d698e364e21c36eb5d 100644 (file)
@@ -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());