From: Niki Date: Fri, 22 Mar 2019 14:27:37 +0000 (+0100) Subject: fix: NPE when opening source/author X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=680dcb61890b95f8acc8a6b9af8efa684e246b91;p=nikiroo-utils.git fix: NPE when opening source/author --- diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderFrame.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderFrame.java index 9d536a2..9479000 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderFrame.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderFrame.java @@ -761,8 +761,8 @@ class GuiReaderFrame extends JFrame implements FrameHelper { if (selectedBook != null) { if (selectedBook.getInfo().getMeta() == null) { mainPanel.removeBookPanes(); - mainPanel.addBookPane(selectedBook.getInfo().getMeta() - .getSource(), mainPanel.getCurrentType()); + mainPanel.addBookPane(selectedBook.getInfo().getMainInfo(), + mainPanel.getCurrentType()); mainPanel.refreshBooks(); } else { mainPanel.openBook(selectedBook);