From d0e194518335e16ff30d67366aa1cad1f8534b1e Mon Sep 17 00:00:00 2001 From: Fabrizio La Rosa Date: Wed, 17 Jun 2020 04:29:07 +0200 Subject: [PATCH] Hotfix for a nullPointerException in getString() --- .../songoda/skyblock/command/commands/island/AcceptCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/skyblock/command/commands/island/AcceptCommand.java b/src/main/java/com/songoda/skyblock/command/commands/island/AcceptCommand.java index 9a74c1fd..11b4c2c7 100644 --- a/src/main/java/com/songoda/skyblock/command/commands/island/AcceptCommand.java +++ b/src/main/java/com/songoda/skyblock/command/commands/island/AcceptCommand.java @@ -170,7 +170,7 @@ public class AcceptCommand extends SubCommand { if (scoreboardManager != null) { Scoreboard scoreboard = scoreboardManager.getScoreboard(player); scoreboard.setDisplayName(ChatColor.translateAlternateColorCodes('&', - configLoad.getString("Scoreboard.Island.Team.Displayname"))); + configLoad.getString("Scoreboard.Island.Team.Displayname", ""))); if (islandManager.getVisitorsAtIsland(island).size() == 0) { scoreboard.setDisplayList(