From 958766b51be197b0e08d8c29ff9ce948839a5208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 12 Apr 2011 09:04:31 +0200 Subject: [PATCH] Fix album loading. --- src/main/java/net/pterodactylus/sone/core/Core.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.7.4