Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index out of Bounds Exception at CSL #623

Open
koppor opened this issue Sep 7, 2022 · 0 comments
Open

Index out of Bounds Exception at CSL #623

koppor opened this issue Sep 7, 2022 · 0 comments

Comments

@koppor
Copy link
Owner

koppor commented Sep 7, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant