Store the avatar ID differently in profile.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 0f22b81..8edb14f 100644 (file)
@@ -1094,7 +1094,7 @@ public class Core extends AbstractService implements SoneProvider {
                /* load avatar. */
                String avatarId = configuration.getStringValue(sonePrefix + "/Profile/Avatar").getValue(null);
                if (avatarId != null) {
-                       profile.setAvatar(getImage(avatarId).orNull());
+                       profile.setAvatar(getImage(avatarId).transform(GET_ID));
                }
 
                /* load options. */