closes https://github.com/assimp/assimp/issues/2439: add null ptr test before calling hasAttr.
parent
5a82e27885
commit
01070b4de7
|
@ -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