🚧 Don’t cancel on archive manifests
[Sone.git] / src / main / java / net / pterodactylus / sone / data / impl / ImageImpl.java
index b357b6a..9446cec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - ImageImpl.java - Copyright Â© 2011–2019 David Roden
+ * Sone - ImageImpl.java - Copyright Â© 2011–2020 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -95,7 +95,7 @@ public class ImageImpl implements Image {
        @Override
        public Image setAlbum(Album album) {
                checkNotNull(album, "album must not be null");
-               checkNotNull(album.getSone().equals(getSone()), "album must belong to the same Sone as this image");
+               checkState(album.getSone().equals(getSone()), "album must belong to the same Sone as this image");
                this.album = album;
                return this;
        }