From fbf141aad8088dfb8118f674a3f292d8709a6fc9 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 14 Oct 2015 12:49:00 +0200 Subject: [PATCH] Fix crash when searching in the library --- .../java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java b/app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java index b0cbb0c4e..3ab091eb8 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java @@ -42,9 +42,9 @@ public class LibraryAdapter extends EasyAdapter implements Filterable { } else { List filteredMangas = Observable.from(mangas) .filter(x -> - x.title.toLowerCase().contains(query) || - x.author.toLowerCase().contains(query) || - x.artist.toLowerCase().contains(query)) + (x.title != null && x.title.toLowerCase().contains(query)) || + (x.author != null && x.author.toLowerCase().contains(query)) || + (x.artist != null && x.artist.toLowerCase().contains(query))) .toList() .toBlocking() .single();