Salome HOME
def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
authoreap <eap@opencascade.com>
Wed, 6 Mar 2013 16:03:18 +0000 (16:03 +0000)
committereap <eap@opencascade.com>
Wed, 6 Mar 2013 16:03:18 +0000 (16:03 +0000)
commit77f09a6ae5b05b386bb034a0a5ce6f48e478e391
tree9d7ccd8216f2902028588075826c160adcce2093
parentf3304d692be2c3b6abc8b29a6b974170d339ae89
 def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
         study = smeshpyD.GetCurrentStudy()
+        if not study: return None
         scomp = study.FindComponent(smeshpyD.ComponentDataType())
src/SMESH_SWIG/smesh_algorithm.py