Skip to content

Commit

Permalink
Fix afk list NPE (#4294)
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Jul 1, 2021
1 parent 0861427 commit 55db6c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public void reloadConfig() {
getFreezeAfkPlayers = _getFreezeAfkPlayers();
sleepIgnoresAfkPlayers = _sleepIgnoresAfkPlayers();
afkListName = _getAfkListName();
isAfkListName = !afkListName.equalsIgnoreCase("none");
isAfkListName = afkListName != null && !afkListName.equalsIgnoreCase("none");
broadcastAfkMessage = _broadcastAfkMessage();
itemSpawnBl = _getItemSpawnBlacklist();
loginAttackDelay = _getLoginAttackDelay();
Expand Down

0 comments on commit 55db6c2

Please sign in to comment.