Add in null check

This commit is contained in:
James Allen 2014-11-10 11:40:19 +00:00
parent dc60f2b736
commit 919b192e16

View file

@ -21,5 +21,5 @@ module.exports = Router =
return
client.on "joinProject", (data = {}, callback) ->
WebsocketController.joinProject(client, user, data.project_id, callback)
WebsocketController.joinProject(client, user, data?.project_id, callback)