Terminate the list of Sones as well.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 19:19:03 +0000 (21:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 19:19:03 +0000 (21:19 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index b38aac6..2b0c0bf 100644 (file)
@@ -368,8 +368,10 @@ public class Core extends AbstractService {
                                }
                                /* write null ID as terminator. */
                                configuration.getStringValue(sonePrefix + "/Reply." + replyId + "/ID").setValue(null);
-
                        }
+                       /* write null ID as terminator. */
+                       configuration.getStringValue("Sone/Sone." + soneId + "/ID").setValue(null);
+
                } catch (ConfigurationException ce1) {
                        logger.log(Level.WARNING, "Could not store configuration!", ce1);
                }