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

Explosion when writing in a paragraph #235

Open
openlowcode opened this issue Oct 1, 2020 · 0 comments
Open

Explosion when writing in a paragraph #235

openlowcode opened this issue Oct 1, 2020 · 0 comments

Comments

@openlowcode
Copy link
Owner

openlowcode commented Oct 1, 2020

When writing in a paragraph, the following explosion happens. As a result, the display is going back up.

Exception in thread "JavaFX Application Thread" java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.elementData(ArrayList.java:422)
        at java.util.ArrayList.remove(ArrayList.java:499)
        at org.openlowcode.tools.richtext.RichTextArea.splitparagraphatcurrentchar(RichTextArea.java:440)
        at org.openlowcode.tools.richtext.Paragraph$13.handle(Paragraph.java:1037)
        at org.openlowcode.tools.richtext.Paragraph$13.handle(Paragraph.java:955)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)

if this explosion is fixed, another explosion seems to be behind. 3 first lines are temporary logs added to RichTextArea after line 439 if activeparagraphindex = -1

SEVERE   11:22.736  ------------- Detected no active paragraph, does not manage split
SEVERE   11:22.739         >>> split current paragraph length/caret (6/3)
SEVERE   11:22.751         >>> split firstparagraph = 3, secondparagraph = 3
        at java.util.ArrayList.elementData(ArrayList.java:422)
        at java.util.ArrayList.get(ArrayList.java:435)
        at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89)
        at com.sun.javafx.collections.VetoableListDecorator.get(VetoableListDecorator.java:306)
        at javafx.scene.Parent$2.onProposedChange(Parent.java:423)
        at com.sun.javafx.collections.VetoableListDecorator.remove(VetoableListDecorator.java:329)
        at org.openlowcode.tools.richtext.RichTextArea.redrawActiveParagraph(RichTextArea.java:905)
        at org.openlowcode.tools.richtext.Paragraph$13.handle(Paragraph.java:1038)
        at org.openlowcode.tools.richtext.Paragraph$13.handle(Paragraph.java:955)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
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