Skip to content

Commit

Permalink
hotfix NPE in the main table (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriba authored and tobiasdiez committed Oct 12, 2016
1 parent 56b9a67 commit 57027c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void listChanged(ListEvent<BibEntry> 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;
}
Expand Down

0 comments on commit 57027c0

Please sign in to comment.