Skip to content

Commit

Permalink
Fix #66 NPE on world reload
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Dec 15, 2015
1 parent 4921de8 commit 4e0024e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/mezz/jei/gui/ItemListOverlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ public boolean hasKeyboardFocus() {

@Override
public void setKeyboardFocus(boolean keyboardFocus) {
searchField.setFocused(keyboardFocus);
if (searchField != null) {
searchField.setFocused(keyboardFocus);
}
}

@Override
Expand Down

0 comments on commit 4e0024e

Please sign in to comment.