Skip to content

Commit

Permalink
Merge pull request assimp#2533 from assimp/issue_2439
Browse files Browse the repository at this point in the history
closes assimp#2439: add null ptr tes…
  • Loading branch information
kimkulling authored Jul 4, 2019
2 parents 5a82e27 + 01070b4 commit b688797
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions port/PyAssimp/pyassimp/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def hasattr_silent(object, name):
"""

try:
if not object:
return False
return hasattr(object, name)
except AttributeError:
return False

0 comments on commit b688797

Please sign in to comment.