From abdc20f2e197bc365ed1d87df0ae67024793b483 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 5 Nov 2010 11:54:33 +0100 Subject: [PATCH] Delete correct value to mark the Sone as deleted. --- 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 9f76223..bd73c0c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -569,7 +569,7 @@ public class Core implements IdentityListener { identityManager.removeContext((OwnIdentity) sone.getIdentity(), "Sone"); identityManager.removeProperty((OwnIdentity) sone.getIdentity(), "Sone.LatestEdition"); try { - configuration.getStringValue("Sone/" + sone.getId() + "/Time").setValue(null); + configuration.getLongValue("Sone/" + sone.getId() + "/Time").setValue(null); } catch (ConfigurationException ce1) { logger.log(Level.WARNING, "Could not remove Sone from configuration!", ce1); } -- 2.7.4