Skip to content

Commit da34aa4

Browse files
committed
Fixed #883
1 parent 93838e7 commit da34aa4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ to [sourceforge feature requests](https://sourceforge.net/p/jabref/features/) by
3535
- Integrity check now also checks broken file links, abbreviations in journal and booktitle, and incorrect use of proceedings with page numbers
3636

3737
### Fixed
38+
- Fixed [#883](https://github.com/JabRef/jabref/issues/883): No NPE during cleanup
3839
- Fixed [#466](https://github.com/JabRef/jabref/issues/466): Rename PDF cleanup now also changes case of file name
3940
- Fixed [#621](https://github.com/JabRef/jabref/issues/621) and [#669](https://github.com/JabRef/jabref/issues/669): Encoding and preamble now end with newline.
4041
- Make BibTex parser more robust against missing newlines

src/main/java/net/sf/jabref/gui/actions/CleanupAction.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ private int showDialog() {
157157
*/
158158
private void doCleanup(CleanupPreset preset, BibEntry entry, NamedCompound ce) {
159159
// Run cleaner
160-
CleanupWorker cleaner = new CleanupWorker(preset, panel.getBibDatabaseContext().getMetaData().getFileDirectory(Globals.FILE_FIELD));
160+
CleanupWorker cleaner = new CleanupWorker(preset,
161+
panel.getBibDatabaseContext().getMetaData().getFileDirectory(Globals.FILE_FIELD), null,
162+
Globals.journalAbbreviationLoader.getRepository());
161163
List<FieldChange> changes = cleaner.cleanup(entry);
162164

163165
unsuccessfulRenames = cleaner.getUnsuccessfulRenames();

0 commit comments

Comments
 (0)