         userEnergyUpd = "LEAST(#{constants.energy.user.maxValue}, energy + #{constants.energy.user.value})"
         @currentGame (currentGame) =>
             User.find({}).done (user) =>
-                if !user then return
+                if !user or !currentGame then return
                 @getGameUser currentGame, user.dataValues, (gameUser) ->
                     GameUser.update energy: Sequelize.literal(userEnergyUpd),
                         where: id: gameUser.id

    assignTeams: =>
        logger.info 'controller: Assign teams'
        @currentGame (currentGame) =>
            Team.find({}).done (team) =>
                @getGameTeamForTeam currentGame, team, (gameTeam) =>
                    @getTeamsCount (teamsCount) =>

        @currentGame (currentGame) =>
            Point.find({}).done (point) =>
                console.log "Point #{point}"
                if !point or !currentGame then return
                @getGamePoint point.dataValues, currentGame, (gamePoint) =>
                    GamePoint.update energy: Sequelize.literal(pointEnergyUpd),
                        where: id: gamePoint.id
