Merge pull request #2533 from assimp/issue_2439
closes https://github.com/assimp/assimp/issues/2439: add null ptr tes…pull/2535/head
commit
b688797766
|
@ -274,6 +274,8 @@ def hasattr_silent(object, name):
|
|||
"""
|
||||
|
||||
try:
|
||||
if not object:
|
||||
return False
|
||||
return hasattr(object, name)
|
||||
except AttributeError:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue