Browse Source

EnumMaps cannot use a null key

t00thpick1 11 years ago
parent
commit
70a23f8a0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java

+ 1 - 1
src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java

@@ -421,7 +421,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
     }
 
     public Map<SkillType, Integer> readRank(String playerName) {
-        Map<SkillType, Integer> skills = new EnumMap<SkillType, Integer>(SkillType.class);
+        Map<SkillType, Integer> skills = new HashMap<SkillType, Integer>(SkillType.class);
 
         ResultSet resultSet = null;
         PreparedStatement statement = null;