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

NPE thrown when control residing in TabPane becomes focus-ineligible

    XMLWordPrintable

    Details

      Description

      If I run the attached test program and click the "New tab" button, the following stack trace appears in stderr:

      java.lang.NullPointerException
      at com.sun.javafx.scene.traversal.ContainerTabOrder.findNextFocusablePeer(ContainerTabOrder.java:69)
      at com.sun.javafx.scene.traversal.ContainerTabOrder.traverse(ContainerTabOrder.java:34)
      at com.sun.javafx.scene.traversal.TraversalEngine.trav(TraversalEngine.java:83)
      at com.sun.javafx.scene.control.skin.TabPaneSkin$TabContentRegion.onTraverse(TabPaneSkin.java:1119)
      at com.sun.javafx.scene.traversal.TraversalEngine.trav(TraversalEngine.java:94)
      at com.sun.javafx.scene.control.skin.TabPaneSkin$TabContentRegion$3.trav(TabPaneSkin.java:1096)
      at javafx.scene.Scene.traverse(Scene.java:1190)
      at javafx.scene.Scene.focusIneligible(Scene.java:1209)
      at javafx.scene.Scene.access$2500(Scene.java:105)
      at javafx.scene.Scene$ScenePulseListener.focusCleanup(Scene.java:1554)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1582)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:268)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:358)
      at com.sun.javafx.tk.quantum.QuantumToolkit$10.run(QuantumToolkit.java:294)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
      at java.lang.Thread.run(Thread.java:662)

      This only happens if the TabPane is the root of the scene. That is, the problem is not reproducible if the TabPane is added as a child to another node.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                miflemi Mick Fleming (Inactive)
                Reporter:
                vbaranov Vasiliy Baranov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: