Don’t access the Sone cache directly.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 14:12:03 +0000 (16:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 14:12:03 +0000 (16:12 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 3164484..03c036a 100644 (file)
@@ -336,7 +336,7 @@ public class Core extends AbstractService {
                                        if (friendId == null) {
                                                break;
                                        }
-                                       Sone friendSone = soneCache.get(friendId);
+                                       Sone friendSone = getSone(friendId);
                                        String friendKey = configuration.getStringValue(friendPrefix + "/Key").getValue(null);
                                        String friendName = configuration.getStringValue(friendPrefix + "/Name").getValue(null);
                                        friendSone.setRequestUri(new FreenetURI(friendKey)).setName(friendName);