From f4d0371a70c4e317d984c567050687846e2393b3 Mon Sep 17 00:00:00 2001 From: akl Date: Mon, 22 Apr 2013 10:37:55 +0000 Subject: [PATCH] Check for null object was added. --- src/SMESH_SWIG/smeshBuilder.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2