From 680dcb61890b95f8acc8a6b9af8efa684e246b91 Mon Sep 17 00:00:00 2001 From: Niki Date: Fri, 22 Mar 2019 15:27:37 +0100 Subject: [PATCH] fix: NPE when opening source/author --- src/be/nikiroo/fanfix/reader/ui/GuiReaderFrame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.27.0