Fix check for removed identities.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jan 2011 06:14:56 +0000 (07:14 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jan 2011 12:39:05 +0000 (13:39 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java

index aac5cd8..98ba2c7 100644 (file)
@@ -213,7 +213,7 @@ public class IdentityManager extends AbstractService {
                                        /* find removed identities. */
                                        if (oldIdentities.containsKey(ownIdentity)) {
                                                for (Identity oldIdentity : oldIdentities.get(ownIdentity).values()) {
-                                                       if (!currentIdentities.containsKey(oldIdentity.getId())) {
+                                                       if (!currentIdentities.get(ownIdentity).containsKey(oldIdentity.getId())) {
                                                                identityListenerManager.fireIdentityRemoved(ownIdentity, oldIdentity);
                                                        }
                                                }