From 64968166924bfecacb34da59e871ed6afd24aa20 Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Thu, 10 Jan 2013 22:06:50 -0500 Subject: [PATCH] Fixed the null check I broke. --- src/main/java/com/gmail/nossr50/runnables/UserPurgeTask.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/runnables/UserPurgeTask.java b/src/main/java/com/gmail/nossr50/runnables/UserPurgeTask.java index f5c8271b1..5c4311d5e 100644 --- a/src/main/java/com/gmail/nossr50/runnables/UserPurgeTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/UserPurgeTask.java @@ -46,6 +46,11 @@ public class UserPurgeTask implements Runnable { for (int i = 1; i <= userslist.size(); i++) { int userId = Integer.valueOf(userslist.get(i).get(1)); HashMap> username = database.read("SELECT user FROM " + tablePrefix + "users WHERE id = '" + userId + "'"); + + if (username == null) { + continue; + } + String playerName = username.get(1).get(0); if (Bukkit.getOfflinePlayer(playerName).isOnline()) {