Merge branch 'next' into new-database-38
[Sone.git] / src / main / java / net / pterodactylus / sone / database / memory / MemorySone.java
index 1c5912f..da487b3 100644 (file)
@@ -576,7 +576,9 @@ public class MemorySone implements Sone {
        @Override
        public void addAlbum(Album album) {
                Validation.begin().isNotNull("Album", album).check().isEqual("Album Owner", album.getSone(), this).check();
-               albums.add(album);
+               if (!albums.contains(album)) {
+                       albums.add(album);
+               }
        }
 
        /**