fix: NPE when opening source/author
authorNiki <david.roulet@uclouvain.be>
Fri, 22 Mar 2019 14:27:37 +0000 (15:27 +0100)
committerNiki <david.roulet@uclouvain.be>
Fri, 22 Mar 2019 14:27:37 +0000 (15:27 +0100)
src/be/nikiroo/fanfix/reader/ui/GuiReaderFrame.java

index 9d536a25a3ded1118d5338c499d751c88e442652..947900077113b1693c1f731f3bd406a25ccc08de 100644 (file)
@@ -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);