Clear the correct list.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 10 Apr 2011 11:00:13 +0000 (13:00 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 04:40:23 +0000 (06:40 +0200)
src/main/java/net/pterodactylus/sone/data/Sone.java

index 7b7a391..1a8c7df 100644 (file)
@@ -612,7 +612,7 @@ public class Sone implements Fingerprintable, Comparable<Sone> {
         */
        public synchronized void setAlbums(Collection<? extends Album> albums) {
                Validation.begin().isNotNull("Albums", albums).check();
-               albums.clear();
+               this.albums.clear();
                for (Album album : albums) {
                        addAlbum(album);
                }