Skip to content

Random crashes in GenericStyleArea.visibleParToAllParIndex #777

Closed
@kszilagyi

Description

@kszilagyi

Expected Behavior

Shouldn't throw exception but return the index of the paragraph.

Actual Behavior

Sometimes when I call this method it reaches: throw new AssertionError("Unreachable code");
As much as I can tell the problem is that the element in the visibleParagraphs is the same as the one in the paragraphs but they are not the same reference therefore the search can't find it. I have no idea how is this possible.

Reproducible Demo

Unfortunately I only have this rarely...

Environment info:

  • RichTextFX Version: 0.9.1
  • Operating System: Ubuntu 18.04 but happened in 16.04 too.
  • Java version: "1.8.0_181"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions