An NPE gets thrown when scrolling a large model in the RichTextArea:
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot invoke "com.sun.jfx.incubator.scene.control.richtext.CaretInfo.getMinX()" because "ci" is null
at jfx.incubator.richtext/com.sun.jfx.incubator.scene.control.richtext.VFlow.getImeLocationOnScreen(VFlow.java:1721)
at jfx.incubator.richtext/jfx.incubator.scene.control.richtext.skin.RichTextAreaSkin$2.getTextLocation(RichTextAreaSkin.java:176)
at javafx.graphics/javafx.scene.Scene$InputMethodRequestsDelegate.getTextLocation(Scene.java:4252)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.getInputMethodCandidatePos(GlassViewEventHandler.java:580)
at javafx.graphics/com.sun.glass.ui.View.getInputMethodCandidatePos(View.java:691)
at javafx.graphics/com.sun.glass.ui.View.notifyInputMethodCandidatePosRequest(View.java:1019)
(discovered while fixing https://github.com/openjdk/jfx/pull/1975 )
To reproduce, run RichTextAreaDemoApp with a "2,000,000,000 Lines" model and try scrolling with the mouse wheel rapidly up and down.
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot invoke "com.sun.jfx.incubator.scene.control.richtext.CaretInfo.getMinX()" because "ci" is null
at jfx.incubator.richtext/com.sun.jfx.incubator.scene.control.richtext.VFlow.getImeLocationOnScreen(VFlow.java:1721)
at jfx.incubator.richtext/jfx.incubator.scene.control.richtext.skin.RichTextAreaSkin$2.getTextLocation(RichTextAreaSkin.java:176)
at javafx.graphics/javafx.scene.Scene$InputMethodRequestsDelegate.getTextLocation(Scene.java:4252)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.getInputMethodCandidatePos(GlassViewEventHandler.java:580)
at javafx.graphics/com.sun.glass.ui.View.getInputMethodCandidatePos(View.java:691)
at javafx.graphics/com.sun.glass.ui.View.notifyInputMethodCandidatePosRequest(View.java:1019)
(discovered while fixing https://github.com/openjdk/jfx/pull/1975 )
To reproduce, run RichTextAreaDemoApp with a "2,000,000,000 Lines" model and try scrolling with the mouse wheel rapidly up and down.
- relates to
-
JDK-8351982 ☂ RichTextArea (Incubator) Feedback and Bugs in jfx24
-
- Open
-
- links to
-
Review(master)
openjdk/jfx/1997