Delete correct value to mark the Sone as deleted.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 10:54:33 +0000 (11:54 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 10:54:33 +0000 (11:54 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 9f76223..bd73c0c 100644 (file)
@@ -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);
                }