Merge pull request #2533 from assimp/issue_2439

closes https://github.com/assimp/assimp/issues/2439: add null ptr tes…
pull/2535/head
Kim Kulling 2019-07-05 01:21:09 +02:00 committed by GitHub
commit b688797766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,8 @@ def hasattr_silent(object, name):
"""
try:
if not object:
return False
return hasattr(object, name)
except AttributeError:
return False