diff --git a/services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee b/services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee index 6c79efd0ad..30fbccd05a 100644 --- a/services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee +++ b/services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee @@ -4,5 +4,8 @@ define [ ], (App, ColorManager) -> App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) -> $scope.hue = (user) -> - ColorManager.getHueForUserId(user.id) + if !user? + return 0 + else + return ColorManager.getHueForUserId(user.id) ] \ No newline at end of file