From c96cfb51cea8fb9e2589a91f01bdd4f30cc4db8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 14 Jan 2011 14:45:48 +0100 Subject: [PATCH] Allow null field values. --- src/main/java/net/pterodactylus/sone/core/Core.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7cbce1b..781f414 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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); } -- 2.7.4