diff --git a/bloodhound/ad/utils.py b/bloodhound/ad/utils.py index f6bc5c4..61f09b3 100644 --- a/bloodhound/ad/utils.py +++ b/bloodhound/ad/utils.py @@ -355,6 +355,8 @@ def get_entry_property(entry, prop, default=None, raw=False): converting empty values to the default specified. This is primarily for output to JSON """ + if entry is None: + return default try: if raw: value = entry['raw_attributes'][prop]