#vulnerable code 
                                private void patch() {
        PluginConfiguration config = FunnyGuilds.getInstance().getPluginConfiguration();

        for (Player player : this.getServer().getOnlinePlayers()) {
            this.getServer().getScheduler().runTask(this, () -> PacketExtension.registerPlayer(player));

            User user = User.get(player);
            if (user.getCache().getScoreboard() == null) {
                user.getCache().setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());
            }
            user.getCache().getDummy();
            user.getRank();

            if (config.playerListEnable) {
                AbstractTablist.createTablist(config.playerList, config.playerListHeader, config.playerListFooter, config.playerListPing, player);
            }
        }

        for (Guild guild : GuildUtils.getGuilds()) {
            if (config.createEntityType != null) {
                GuildEntityHelper.spawnGuildHeart(guild);
            }

            guild.updateRank();
        }
    } 
                            #location 14 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                private void patch() {
        for (Player player : this.getServer().getOnlinePlayers()) {
            this.getServer().getScheduler().runTask(this, () -> PacketExtension.registerPlayer(player));

            User user = User.get(player);
            if (user.getCache().getScoreboard() == null) {
                user.getCache().setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());
            }
            user.getCache().getDummy();
            user.getRank();

            if (!pluginConfiguration.playerListEnable) {
                continue;
            }

            AbstractTablist.createTablist(pluginConfiguration.playerList, pluginConfiguration.playerListHeader, pluginConfiguration.playerListFooter, pluginConfiguration.playerListPing, player);
        }

        for (Guild guild : GuildUtils.getGuilds()) {
            if (pluginConfiguration.createEntityType != null) {
                GuildEntityHelper.spawnGuildHeart(guild);
            }

            guild.updateRank();
        }
    }