Description
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"