From fe1d55a9525f99d8c38c6ac4bafd9d0f33f4d0d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 27 Oct 2010 18:49:30 +0200 Subject: [PATCH] Store insert key of blacklisted Sone correctly. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4