Skip to content

Commit

Permalink
Merge pull request #1243 from JabRef/fix-1234
Browse files Browse the repository at this point in the history
Fixes #1234 Trigger entry update explicitly
  • Loading branch information
matthiasgeiger committed Apr 20, 2016
2 parents 094f11d + 5e1ce66 commit ea64bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ to [sourceforge feature requests](https://sourceforge.net/p/jabref/features/) by
- Added integrity check detecting HTML-encoded characters

### Fixed
- Fixed [#1234](https://github.com/JabRef/jabref/issues/1234): NPE when getting information from retrieved DOI

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ public static Optional<JComponent> getDoiExtraComponent(BasePanel panel, EntryEd
doiButton.addActionListener(actionEvent -> {
Optional<DOI> doi = CrossRef.findDOI(entryEditor.getEntry());
if (doi.isPresent()) {
JTextComponent field = (JTextComponent) fieldEditor.getTextComponent();
field.setText(doi.get().getDOI());
entryEditor.getEntry().setField("doi", doi.get().getDOI());
} else {
panel.frame().setStatus(Localization.lang("No DOI found"));
}
Expand Down

0 comments on commit ea64bba

Please sign in to comment.