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:
- Select options/preferences/Entry preview
- click one of the selected styles in the right window
- 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.

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)
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:
The event log is empty.
Log File