X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix_swing%2Fgui%2FBooksPanel.java;h=04ee86fce036602c9e15962f463b4eabc1270049;hb=d6c8579cb5debbdf7657d405e6529ba324903fcd;hp=8a882136e3803e856ea0bd9cc36f862dc9118a04;hpb=89f2c4799d6a9d16d2c909da175621e0f2eda301;p=fanfix.git diff --git a/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java b/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java index 8a88213..04ee86f 100644 --- a/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java +++ b/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java @@ -164,7 +164,8 @@ public class BooksPanel extends ListenerPanel { private void filter(String filter) { data.clear(); for (BookInfo bookInfo : bookInfos) { - if (filter.isEmpty() || bookInfo.getMainInfo().toLowerCase().contains(filter.toLowerCase())) { + if (bookInfo.getMainInfo() == null || filter.isEmpty() + || bookInfo.getMainInfo().toLowerCase().contains(filter.toLowerCase())) { data.addElement(bookInfo); } }