From: David ‘Bombe’ Roden Date: Fri, 14 Jan 2011 13:45:48 +0000 (+0100) Subject: Allow null field values. X-Git-Tag: 0.4^2~9^2~17 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c96cfb51cea8fb9e2589a91f01bdd4f30cc4db8c;p=Sone.git Allow null field values. --- 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); }