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

Box renders with NPE when some of its dimensions is set to 0 and some are not

    XMLWordPrintable

Details

    Description

      Run the attached sample. It creates a Box of D x 0 x D pixels size.

      Rendering results in the following NPE:
      java.lang.NullPointerException
      at javafx.scene.shape.Box.impl_updatePG(Box.java:188)
      at javafx.scene.Node.impl_syncPGNode(Node.java:476)
      at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2178)
      at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2187)
      at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2152)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2286)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:373)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:562)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:541)
      at com.sun.javafx.tk.quantum.QuantumToolkit$15.run(QuantumToolkit.java:426)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:94)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
      at java.lang.Thread.run(Thread.java:722)

      Attachments

        Issue Links

          Activity

            People

              yaow Yao Wang (Inactive)
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: