Allow null field values.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 13:45:48 +0000 (14:45 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 13:45:48 +0000 (14:45 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 7cbce1b..781f414 100644 (file)
@@ -1041,11 +1041,7 @@ public class Core implements IdentityListener, UpdateListener {
                        if (fieldName == null) {
                                break;
                        }
-                       String fieldValue = configuration.getStringValue(fieldPrefix + "/Value").getValue(null);
-                       if (fieldValue == null) {
-                               logger.log(Level.WARNING, "Invalid profile field found, aborting load!");
-                               return;
-                       }
+                       String fieldValue = configuration.getStringValue(fieldPrefix + "/Value").getValue("");
                        profile.addField(fieldName);
                        profile.setField(fieldName, fieldValue);
                }