Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8112491

TextBox NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • Windows 7

      I am using TextBox in Scala JavaFX application.

      "C:\Program Files\Java\jdk1.6.0_23\bin\java" -Didea.launcher.port=7542 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 10.0.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.6.0_23\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\alt-string.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\sunpkcs11.jar;C:\Users\Peter\Documents\IdeaProjects\JavaFXScalaRPEL\target\classes;C:\Users\Peter\.m2\repository\org\scala-lang\scala-library\2.8.1\scala-library-2.8.1.jar;C:\Users\Peter\.m2\repository\jline\jline\0.9.91\jline-0.9.91.jar;C:\Users\Peter\.m2\repository\org\scala-lang\scala-compiler\2.8.1\scala-compiler-2.8.1.jar;C:\opt\javafx-sdk2.0-ea\rt\jfxrt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 10.0.2\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain javafxscalarepl.ScalaRepl
      Hello World!
      java.lang.NullPointerException
      at com.sun.javafx.scene.control.skin.ScrollPaneSkin$1.handle(ScrollPaneSkin.java:116)
      at com.sun.javafx.beans.PropertySupport.fireChangedEvent(PropertySupport.java:140)
      at javafx.scene.Node.fireChangedEvent(Node.java)
      at javafx.scene.Node.getLayoutBounds(Node.java:1921)
      at javafx.scene.Node.computePrefWidth(Node.java:1603)
      at javafx.scene.Node.getPrefWidth(Node.java:1578)
      at com.sun.javafx.scene.control.skin.ScrollPaneSkin$1.handle(ScrollPaneSkin.java:101)
      at com.sun.javafx.beans.PropertySupport.fireChangedEvent(PropertySupport.java:140)
      at javafx.scene.Node.fireChangedEvent(Node.java)
      at javafx.scene.Node.impl_notifyLayoutBoundsChanged(Node.java:2455)
      at javafx.scene.text.Text.impl_notifyLayoutBoundsChanged(Text.java:480)
      at javafx.scene.Node.impl_geomChanged(Node.java:2403)
      at javafx.scene.text.Text.impl_geomChanged(Text.java:301)
      at javafx.scene.text.Text.storeFont(Text.java:149)
      at javafx.scene.text.Text.setFont(Text.java)
      at javafx.scene.text.Text.impl_cssSet(Text.java:639)
      at javafx.scene.Node.impl_cssSet(Node.java:4442)
      at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:203)
      at javafx.scene.Node.impl_processCSS(Node.java:4369)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1021)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1021)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1021)
      at javafx.scene.control.Control.impl_processCSS(Control.java:363)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1021)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1021)
      at com.sun.javafx.css.StyleManager$2.onChanged(StyleManager.java:159)
      at com.sun.javafx.collections.ObservableListWrapper.callObservers(ObservableListWrapper.java:55)
      at com.sun.javafx.collections.ObservableListWrapper.add(ObservableListWrapper.java:74)
      at com.sun.javafx.collections.GenericSequence.add(GenericSequence.java:75)
      at com.sun.javafx.collections.ObservableListWrapper.add(ObservableListWrapper.java:67)
      at com.sun.javafx.collections.GenericSequence.add(GenericSequence.java:67)
      at javafx.stage.Stage.storeVisible(Stage.java:271)
      at javafx.stage.Window.setVisible(Window.java)
      at javafxscalarepl.ScalaRepl.start(ScalaRepl.scala:75)
      at com.sun.javafx.application.LauncherImpl.launchApplicationImpl(LauncherImpl.java:65)
      at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:15)
      at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:43)
      at com.sun.glass.ui.Application._invokeAndWait(Native Method)
      at com.sun.glass.ui.Application.invokeAndWait(Application.java:107)
      at com.sun.javafx.tk.glass.GlassToolkit.finishLaunching(GlassToolkit.java:197)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:13)
      at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:32)
      at java.lang.Thread.run(Thread.java:662)
      cmd=scala.tools.nsc.InterpreterCommand@1242b11
      settings=Settings {
        -d = .
      }

      interpreter=javafxscalarepl.ScalaRepl$ReplInvoker$$anon$2@1556d12
      ReplInvoker.start
      java.lang.NullPointerException
      at com.sun.javafx.sg.prism.NGText.getRangeShape(NGText.java:1348)
      at com.sun.javafx.sg.prism.NGText.getSelectionShape(NGText.java:1329)
      at com.sun.javafx.tk.glass.PrismTextHelper.getSelectionShape(PrismTextHelper.java:49)
      at javafx.scene.text.Text.getDecorationShapes(Text.java:443)
      at javafx.scene.text.Text.storeImpl_selectionEnd(Text.java:337)
      at javafx.scene.text.Text.setImpl_selectionEnd(Text.java)
      at com.sun.javafx.scene.control.skin.TextBoxSkin.updateTextSelection(TextBoxSkin.java:158)
      at com.sun.javafx.scene.control.skin.TextBoxSkin.handleControlPropertyChanged(TextBoxSkin.java:92)
      at com.sun.javafx.scene.control.skin.SkinBase$1.handle(SkinBase.java:148)
      at com.sun.javafx.beans.PropertySupport.fireChangedEvent(PropertySupport.java:146)
      at javafx.scene.control.TextInputControl.setDot(TextInputControl.java)
      at javafx.scene.control.TextInputControl.selectRange(TextInputControl.java:695)
      at javafx.scene.control.TextInputControl.selectAll(TextInputControl.java:447)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.focusChanged(TextInputControlBehavior.java:458)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior$1.handle(TextInputControlBehavior.java:217)
      at com.sun.javafx.beans.PropertySupport.fireChangedEvent(PropertySupport.java:140)
      at javafx.scene.Node.setFocused(Node.java)
      at javafx.scene.Scene$KeyHandler.setFocusOwner(Scene.java:2002)
      at javafx.scene.Scene$KeyHandler.requestFocus(Scene.java:2061)
      at javafx.scene.Scene$KeyHandler.access$1000(Scene.java:1989)
      at javafx.scene.Scene.requestFocus(Scene.java:1066)
      at javafx.scene.Node.requestFocus(Node.java:3761)
      at com.sun.javafx.scene.traversal.TraversalEngine.trav(TraversalEngine.java:73)
      at javafx.scene.Scene.focusInitial(Scene.java:997)
      at javafx.scene.Scene.access$2300(Scene.java:102)
      at javafx.scene.Scene$ScenePulseListener.focusCleanup(Scene.java:1315)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1348)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:295)
      at com.sun.javafx.tk.glass.GlassToolkit.pulse(GlassToolkit.java:217)
      at com.sun.javafx.tk.glass.GlassToolkit$3.run(GlassToolkit.java:184)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:13)
      at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:32)
      at java.lang.Thread.run(Thread.java:662)


      Rendering error or something

            miflemi Mick Fleming
            ppilgrimjfx Peter Pilgrim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: