diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py index 899a5253d896dcad557134b47ab48ff5b789275d..e65f8c63d370b4cc4b1a391c1932586ce32f065a 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py @@ -97,6 +97,11 @@ class HttpPusher(object): pusherdict['pushkey'], ) + if self.data is None: + raise PusherConfigException( + "data can not be null for HTTP pusher" + ) + if 'url' not in self.data: raise PusherConfigException( "'url' required in data for HTTP pusher"