Skip to content

Commit

Permalink
Fix exception when opening preference dialog (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Oct 5, 2016
1 parent 924d320 commit b31efbd
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 b31efbd

Please sign in to comment.