From: David ‘Bombe’ Roden Date: Fri, 24 Jul 2015 08:51:54 +0000 (+0200) Subject: Check correct Sone for avatar image X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d36ef11accd1ebafada9c9dde7049ad0ebed3059;p=Sone.git Check correct Sone for avatar image --- diff --git a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java index ce29caa..eb280e1 100644 --- a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java @@ -65,7 +65,7 @@ public class ProfileAccessor extends ReflectionAccessor { if (avatarId == null) { return null; } - if (!currentSone.getImageByInternalId(avatarId).isPresent()) { + if (!profile.getSone().getImageByInternalId(avatarId).isPresent()) { /* avatar ID but no matching image? show nothing. */ return null; }