From 70a23f8a0a39dc0d7bf37ca2b8abf4f622902aaf Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sun, 3 Aug 2014 20:39:37 -0400 Subject: [PATCH] EnumMaps cannot use a null key --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index f219039b5..e86dae629 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -421,7 +421,7 @@ public final class SQLDatabaseManager implements DatabaseManager { } public Map readRank(String playerName) { - Map skills = new EnumMap(SkillType.class); + Map skills = new HashMap(SkillType.class); ResultSet resultSet = null; PreparedStatement statement = null;