Skip to content

Index out of Bounds Exception at CSL #623

Open
@koppor

Description

@koppor
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 User should see an explanation why button is disabled #622)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions