Skip to content

Commit

Permalink
Fix exception when opening preference dialog (JabRef#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored and zesaro committed Oct 27, 2016
1 parent f7c443d commit c3817b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public void setValues(AbstractBibtexKeyPattern keyPattern) {
setValue(entry.getValue(), entry.getKey(), keyPattern);
}

if (keyPattern.getDefaultValue() == null) {
if (keyPattern.getDefaultValue() == null || keyPattern.getDefaultValue().isEmpty()) {
defaultPat.setText("");
} else {
defaultPat.setText(keyPattern.getDefaultValue().get(0));
Expand Down

0 comments on commit c3817b8

Please sign in to comment.