diff --git a/lib/src/entities/epub_book.dart b/lib/src/entities/epub_book.dart index 22872b6f..b87aeceb 100644 --- a/lib/src/entities/epub_book.dart +++ b/lib/src/entities/epub_book.dart @@ -40,8 +40,9 @@ class EpubBook { collections.listsEqual(AuthorList, other.AuthorList) && Schema == other.Schema && Content == other.Content && - collections.listsEqual( - CoverImage!.getBytes(), other.CoverImage!.getBytes()) && + ((CoverImage == null && other.CoverImage == null) || + (collections.listsEqual( + CoverImage!.getBytes(), other.CoverImage!.getBytes()))) && collections.listsEqual(Chapters, other.Chapters); } }