mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 05:30:33 +05:00
Check for null object was added.
This commit is contained in:
parent
e5bd3f688c
commit
f4d0371a70
@ -1503,6 +1503,8 @@ class Mesh:
|
|||||||
# @return SMESH.Hypothesis_Status
|
# @return SMESH.Hypothesis_Status
|
||||||
# @ingroup l2_hypotheses
|
# @ingroup l2_hypotheses
|
||||||
def RemoveHypothesis(self, hyp, geom=0):
|
def RemoveHypothesis(self, hyp, geom=0):
|
||||||
|
if not hyp:
|
||||||
|
return None
|
||||||
if isinstance( hyp, Mesh_Algorithm ):
|
if isinstance( hyp, Mesh_Algorithm ):
|
||||||
hyp = hyp.GetAlgorithm()
|
hyp = hyp.GetAlgorithm()
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user