Skip to content

Commit 804ab44

Browse files
committed
Skip Fileless comics
1 parent 34a59f3 commit 804ab44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

FindImageResolution/ComicRack/BookCollection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public BookCollection(object[] books)
1818
for (int i = 0; i < books.Length; i++)
1919
{
2020
var book = new Book(books[i]);
21-
collection.Add(book);
21+
if (book != null && !string.IsNullOrEmpty(book.FilePath))
22+
collection.Add(book);
2223
}
2324
}
2425

0 commit comments

Comments
 (0)