/*
- * 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
@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;
}