From c4db0aae31812623f36bd5b834d48c2dfdb1d0dd Mon Sep 17 00:00:00 2001 From: Christian Bartsch Date: Wed, 12 Oct 2016 17:14:06 +0200 Subject: [PATCH] hotfix NPE in the main table --- .../net/sf/jabref/gui/maintable/MainTableSelectionListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java b/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java index e490a95f886..4208c9dc41e 100644 --- a/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java +++ b/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java @@ -103,7 +103,7 @@ public void listChanged(ListEvent e) { final BibEntry newSelected = selected.get(0); if ((panel.getMode() == BasePanelMode.SHOWING_EDITOR || panel.getMode() == BasePanelMode.WILL_SHOW_EDITOR) - && newSelected == panel.getCurrentEditor().getEntry()) { + && panel.getCurrentEditor() != null && newSelected == panel.getCurrentEditor().getEntry()) { // entry already selected and currently editing it, do not steal the focus from the selected textfield return; }