diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-24 13:47:58 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-24 13:47:58 +0000 |
commit | e549aac12714c36f3a27d131a031d219283ac3d7 (patch) | |
tree | fdf4d80e476741d481e6fa15bdfb6bbf6d3994da /synapse | |
parent | Ask for any auth events that we don't have (diff) | |
download | synapse-e549aac12714c36f3a27d131a031d219283ac3d7.tar.xz |
Add missing None check
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/api/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index cbf3ae0ca4..c4597c1757 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -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 |