Skip to content

Selecting an Entry preview style triggers an Uncaught Exception #7860

@wujastyk

Description

@wujastyk

JabRef 5.3--2021-06-28--9fe7617
Linux 5.4.0-77-generic amd64
Java 16.0.1
JavaFX 16+8

Following on from #7652 :

Steps to reproduce the behavior:

  1. Select options/preferences/Entry preview
  2. click one of the selected styles in the right window
  3. Get an Uncaught Exception popup window. Sometimes it takes one or two click to get the exception; I can't see quite what behaviour uniquely triggers it.

The event log is empty.

image

Log File
java.lang.IllegalArgumentException: Visible paragraphs' last index is [-1] but visibleParIndex was [0]
  at org.jabref.merged.module@5.3.420/org.fxmisc.richtext.GenericStyledArea.visibleParToAllParIndex(Unknown Source)
  at org.jabref.merged.module@5.3.420/org.fxmisc.richtext.ViewActions.firstVisibleParToAllParIndex(Unknown Source)
  at org.jabref.merged.module@5.3.420/org.fxmisc.richtext.LineNumberFactory.deleteParagraphCheck(Unknown Source)
  at org.jabref.merged.module@5.3.420/org.fxmisc.richtext.LineNumberFactory.lambda$new$1(Unknown Source)
  at org.jabref.merged.module@5.3.420/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
  at java.base/java.security.AccessController.doPrivileged(Unknown Source)
  at org.jabref.merged.module@5.3.420/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
  at org.jabref.merged.module@5.3.420/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
  at org.jabref.merged.module@5.3.420/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
  at org.jabref.merged.module@5.3.420/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
  at java.base/java.lang.Thread.run(Unknown Source)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions