-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OutOfBoundsException when importing multiple entries in medline f…
…ormat (#1611) * add test for invalid format and null reader * change encoding to utf-8
- Loading branch information
1 parent
f77daac
commit f6ccf27
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...est/resources/net/sf/jabref/importer/fileformat/MedlinePlainImporterStringOutOfBounds.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@misc{, | ||
title = {This is a test title} | ||
}, @misc{, | ||
title = {This is also a test title} | ||
} |
8 changes: 8 additions & 0 deletions
8
...est/resources/net/sf/jabref/importer/fileformat/MedlinePlainImporterStringOutOfBounds.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
PMID- 27433151 | ||
SO invalid line | ||
TI - This is a test title | ||
|
||
PMID- 27394443 | ||
SO- another invalid line | ||
TI -This is also a test title |
5 changes: 5 additions & 0 deletions
5
...est/resources/net/sf/jabref/importer/fileformat/MedlinePlainImporterTestInvalidFormat.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PMC some PMC | ||
PMID | ||
|
||
|
||
SO-something stands here |