Browse Source

Add in null check

James Allen 12 years ago
parent
commit
919b192e16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/real-time/app/coffee/Router.coffee

+ 1 - 1
services/real-time/app/coffee/Router.coffee

@@ -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)