Explorar el Código

Add in null check

James Allen hace 12 años
padre
commit
919b192e16
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)