mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03:00
fix NPE
This commit is contained in:
parent
f512e5c137
commit
5ea4d5d38a
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class RoomSendEventRestServlet(ClientV1RestServlet):
|
|||
"sender": requester.user.to_string(),
|
||||
}
|
||||
|
||||
if request.args['ts'] and requester.app_service:
|
||||
if 'ts' in request.args and requester.app_service:
|
||||
event_dict['origin_server_ts'] = parse_integer(request, "ts", 0)
|
||||
|
||||
msg_handler = self.handlers.message_handler
|
||||
|
|
Loading…
Reference in a new issue