From: David ‘Bombe’ Roden Date: Tue, 12 Apr 2011 07:04:31 +0000 (+0200) Subject: Fix album loading. X-Git-Tag: beta-freefall-0.6.2-1~38 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=958766b51be197b0e08d8c29ff9ce948839a5208;p=Sone.git Fix album loading. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 5911675..78cd58d 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1343,8 +1343,9 @@ public class Core implements IdentityListener, UpdateListener, ImageInsertListen /* load albums. */ List topLevelAlbums = new ArrayList(); + int albumCounter = 0; while (true) { - String albumPrefix = sonePrefix + "/Albums/" + albums.size(); + String albumPrefix = sonePrefix + "/Albums/" + albumCounter++; String albumId = configuration.getStringValue(albumPrefix + "/ID").getValue(null); if (albumId == null) { break;