From: David ‘Bombe’ Roden Date: Fri, 5 Nov 2010 10:54:33 +0000 (+0100) Subject: Delete correct value to mark the Sone as deleted. X-Git-Tag: 0.2-RC1~16 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=abdc20f2e197bc365ed1d87df0ae67024793b483;p=Sone.git Delete correct value to mark the Sone as deleted. --- 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); }