summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-24 13:47:58 +0000
committerErik Johnston <erik@matrix.org>2014-11-24 13:47:58 +0000
commite549aac12714c36f3a27d131a031d219283ac3d7 (patch)
treefdf4d80e476741d481e6fa15bdfb6bbf6d3994da /synapse
parentAsk for any auth events that we don't have (diff)
downloadsynapse-e549aac12714c36f3a27d131a031d219283ac3d7.tar.xz
Add missing None check
Diffstat (limited to 'synapse')
-rw-r--r--synapse/api/auth.py2
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