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

NullPointerException in NGText.computeBoundsLogical when updating geometry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • fx2.1
    • fx2.0.1
    • javafx
    • Windows 7 (x64)

      Java:
      java version "1.7.0_01"
      Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
      Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)

      JavaFX 2.0.1

      During execution of a simple UI which updates a TextField based on a bound property, there are periodic NullPointerExceptions thrown with the following stack trace:

           [java] java.lang.NullPointerException
           [java] at com.sun.javafx.sg.prism.NGText.computeBoundsLogical(Unknown Source)
           [java] at com.sun.javafx.sg.prism.NGText.computeContentBounds(Unknown Source)
           [java] at com.sun.javafx.tk.quantum.PrismTextHelper.computeBounds(Unknown Source)
           [java] at javafx.scene.text.Text.impl_computeGeomBounds(Unknown Source)
           [java] at javafx.scene.Node.updateGeomBounds(Unknown Source)
           [java] at javafx.scene.Node.getGeomBounds(Unknown Source)
           [java] at javafx.scene.Node.impl_updatePG(Unknown Source)
           [java] at javafx.scene.shape.Shape.impl_updatePG(Unknown Source)
           [java] at javafx.scene.text.Text.impl_updatePG(Unknown Source)
           [java] at javafx.scene.Node.impl_syncPGNode(Unknown Source)
           [java] at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Unknown Source)
           [java] at javafx.scene.Scene$ScenePulseListener.pulse(Unknown Source)
           [java] at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
           [java] at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
           [java] at com.sun.javafx.tk.quantum.QuantumToolkit$10.run(Unknown Source)
           [java] at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
           [java] at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
           [java] at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
           [java] at java.lang.Thread.run(Thread.java:722)

      The application is registered as a listener for notifications from a routine stored within a jar file. The routine within the jar file is executed in a separate thread from the JavaFX thread.

            thor Thor Johannesson (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: