summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_push_actions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index 4425d4bce5..d630a846c9 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -293,6 +293,9 @@ class EventPushActionsStore(SQLBaseStore):
         txn.execute("SELECT MAX(stream_ordering) FROM events")
         max_stream_ordering = txn.fetchone()[0]
 
+        if max_stream_ordering is None:
+            return 0
+
         range_start = 0
         range_end = max_stream_ordering