Check for null object was added.

This commit is contained in:
akl 2013-04-22 10:37:55 +00:00
parent e5bd3f688c
commit f4d0371a70

View File

@ -1503,6 +1503,8 @@ class Mesh:
# @return SMESH.Hypothesis_Status
# @ingroup l2_hypotheses
def RemoveHypothesis(self, hyp, geom=0):
if not hyp:
return None
if isinstance( hyp, Mesh_Algorithm ):
hyp = hyp.GetAlgorithm()
pass