Compare the new list of replies with the correct old list. Fixes #96.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 25 Jan 2011 15:44:38 +0000 (16:44 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 25 Jan 2011 15:44:38 +0000 (16:44 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index dbda28d..364b9f1 100644 (file)
@@ -996,7 +996,7 @@ public class Core implements IdentityListener, UpdateListener {
                                                }
                                        }
                                }
-                               Set<Reply> storedReplies = sone.getReplies();
+                               Set<Reply> storedReplies = storedSone.getReplies();
                                synchronized (newReplies) {
                                        for (Reply reply : sone.getReplies()) {
                                                reply.setSone(storedSone);