Check correct Sone for avatar image
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 24 Jul 2015 08:51:54 +0000 (10:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 24 Jul 2015 18:47:51 +0000 (20:47 +0200)
src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java

index ce29caa..eb280e1 100644 (file)
@@ -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;
                        }