#vulnerable code 
                                private void updateGlobalScores() {
        for (World world : Bukkit.getWorlds()) {
            //Do not update worlds with disabled climate-engines:
            WorldClimateEngine climateEngine = ClimateEngine.getInstance().getClimateEngine(world.getUID());
            if (climateEngine != null && climateEngine.isEnabled()) {
                //Get the scoreboard for this world:
                Scoreboard scoreboard = getScoreboard(world.getUID(), false);

                //Get its objective (scoreboard title / group):
                Objective objective = null;
                if (scoreboard != null) {
                    objective = scoreboard.getObjective(GLOBAL_WARMING);
                }

                //Update the title to show this world's temperature:
                if (objective != null) {
                    double temperature = climateEngine.getTemperature();
                    String format = GlobalWarming.getInstance().getConf().getTemperatureFormat();
                    DecimalFormat decimalFormat = new DecimalFormat(format);
                    objective.setDisplayName(String.format(
                            Lang.SCORE_TEMPERATURE.get(),
                            GeneralCommands.getTemperatureColor(temperature),
                            decimalFormat.format(temperature)));
                }
            }
        }
    } 
                            #location 18 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                private void updateGlobalScores() {
        for (World world : Bukkit.getWorlds()) {
            //Do not update worlds with disabled climate-engines:
            WorldClimateEngine climateEngine = ClimateEngine.getInstance().getClimateEngine(world.getUID());
            if (climateEngine != null && climateEngine.isEnabled()) {
                //Get the scoreboard for this world:
                Scoreboard scoreboard = getScoreboard(world.getUID(), false);

                //Get its objective (scoreboard title / group):
                Objective objective = null;
                if (scoreboard != null) {
                    objective = scoreboard.getObjective(GLOBAL_WARMING);
                }

                //Update the title to show this world's temperature:
                if (objective != null) {
                    double temperature = climateEngine.getTemperature();
                    objective.setDisplayName(String.format(
                            Lang.SCORE_TEMPERATURE.get(),
                            Colorizer.getTemperatureColor(temperature),
                            climateEngine.formatTemp(temperature)));
                }
            }
        }
    }