From: David ‘Bombe’ Roden Date: Mon, 3 Jan 2011 06:14:56 +0000 (+0100) Subject: Fix check for removed identities. X-Git-Tag: 0.4^2~8^2~23 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1bbbccf32d00e5d046275c63c5a2eb489f77603b;p=Sone.git Fix check for removed identities. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java index aac5cd8..98ba2c7 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java @@ -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); } }