forked from MirrorHub/synapse
Add missing None check
This commit is contained in:
parent
2bca242fdc
commit
e549aac127
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Auth(object):
|
|||
# Get room creation event:
|
||||
key = (RoomCreateEvent.TYPE, "", )
|
||||
create = event.old_state_events.get(key)
|
||||
if event.prev_events[0][0] == create.event_id:
|
||||
if create and event.prev_events[0][0] == create.event_id:
|
||||
if create.content["creator"] == event.state_key:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue