From: David ‘Bombe’ Roden Date: Fri, 15 Oct 2010 14:12:03 +0000 (+0200) Subject: Don’t access the Sone cache directly. X-Git-Tag: 0.1-RC1~334 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=00650831729195a0958521a10bf34c69f3585091 Don’t access the Sone cache directly. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 3164484..03c036a 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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);