```coffeescript
define [
	"base"
	"ide/colors/ColorManager"
], (App, ColorManager) ->
	App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
		$scope.hue = (user) ->
			ColorManager.getHueForUserId(user.id)
	]```

Add in null check for user when getting hue in chat
user
```coffeescript
define [
	"base"
	"ide/colors/ColorManager"
], (App, ColorManager) ->
	App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
		$scope.hue = (user) ->
			if !user?
				return 0
			else
				return ColorManager.getHueForUserId(user.id)
	]```
assistant