Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Jan 7, 2018
1 parent f512e5c commit 5ea4d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/v1/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def on_POST(self, request, room_id, event_type, txn_id=None):
"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
Expand Down

0 comments on commit 5ea4d5d

Please sign in to comment.