From: David ‘Bombe’ Roden Date: Wed, 27 Oct 2010 16:49:30 +0000 (+0200) Subject: Store insert key of blacklisted Sone correctly. X-Git-Tag: 0.1-RC1~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fe1d55a9525f99d8c38c6ac4bafd9d0f33f4d0d4;p=Sone.git Store insert key of blacklisted Sone correctly. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index c3bacac..b6dfdf3 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -999,7 +999,7 @@ public class Core extends AbstractService { configuration.getStringValue(blacklistedSonePrefix + "/ID").setValue(blacklistedSone.getId()); configuration.getStringValue(blacklistedSonePrefix + "/Name").setValue(blacklistedSone.getName()); configuration.getStringValue(blacklistedSonePrefix + "/Key").setValue(blacklistedSone.getRequestUri().toString()); - configuration.getStringValue(blacklistedSonePrefix + "/InsertKey").setValue(blacklistedSone.getInsertUri().toString()); + configuration.getStringValue(blacklistedSonePrefix + "/InsertKey").setValue((blacklistedSone.getInsertUri() != null) ? blacklistedSone.getInsertUri().toString() : null); /* TODO - store all known stuff? */ } configuration.getStringValue("BlacklistedSone." + blacklistedSonesCounter + "/ID").setValue(null);