From: akl Date: Mon, 22 Apr 2013 10:37:55 +0000 (+0000) Subject: Check for null object was added. X-Git-Tag: V7_2_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4d0371a70c4e317d984c567050687846e2393b3;p=modules%2Fsmesh.git Check for null object was added. --- diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 78089201d..7028f0731 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -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