koppor / jabref

Collection of simple for JabRef issues. Please submit PRs to https://github.com/jabRef/jabref/.
https://github.com/jabRef/jabref/
MIT License
8 stars 14 forks source link

Index out of Bounds Exception at CSL #623

Open koppor opened 1 year ago

koppor commented 1 year ago
ERROR: Error while generating citation style: java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3
        at java.base/java.util.Objects.checkIndex(Objects.java:359)
        at java.base/java.util.ArrayList.get(ArrayList.java:427)
        at citeproc.java@3.0.0-alpha.6/de.undercouch.citeproc.csl.internal.format.HtmlFormat.doFormatBibliographyEntry(HtmlFormat.java:38)
        at citeproc.java@3.0.0-alpha.6/de.undercouch.citeproc.csl.internal.format.BaseFormat.formatBibliographyEntry(BaseFormat.java:249)
        at citeproc.java@3.0.0-alpha.6/de.undercouch.citeproc.CSL.makeBibliography(CSL.java:1022)
        at citeproc.java@3.0.0-alpha.6/de.undercouch.citeproc.CSL.makeBibliography(CSL.java:905)
        at org.jabref@100.0.0/org.jabref.logic.citationstyle.CSLAdapter.makeBibliography(CSLAdapter.java:68)
        at org.jabref@100.0.0/org.jabref.logic.citationstyle.CitationStyleGenerator.generateCitations(CitationStyleGenerator.java:62)
        at org.jabref@100.0.0/org.jabref.logic.citationstyle.CitationStyleGenerator.generateCitation(CitationStyleGenerator.java:52)
        at org.jabref@100.0.0/org.jabref.logic.citationstyle.CitationStylePreviewLayout.generatePreview(CitationStylePreviewLayout.java:19)
        at org.jabref@100.0.0/org.jabref.gui.preview.PreviewViewer.lambda$update$4(PreviewViewer.java:254)
        at org.jabref@100.0.0/org.jabref.gui.util.BackgroundTask$1.call(BackgroundTask.java:60)
        at org.jabref@100.0.0/org.jabref.gui.util.DefaultTaskExecutor$1.call(DefaultTaskExecutor.java:161)
        at javafx.graphics@18.0.2/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
  1. I created an empty bib file
  2. I created an empty article
  3. I switched to BibTeX mode
  4. I added isbn = {9780321200686}
  5. I changed entry type to book, because the entry editor did not show isbn
  6. I changed the isbn to 978-0321200686 (refs https://github.com/koppor/jabref/issues/622)