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

[SwingNode] : Something in SwingNode throws NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7

      Description

      Run log:
      Exception in runnable
      java.lang.NullPointerException
      at javafx.embed.swing.SwingNode.ungrabFocus(SwingNode.java:561)
      at javafx.embed.swing.SwingNode.access$400(SwingNode.java:112)
      at javafx.embed.swing.SwingNode$SwingNodeContent$2.run(SwingNode.java:550)
      at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:223)
      at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:220)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:220)
      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:724)

      It happens after closing the window if JMenuBar has focus.

      To reproduce:
      1. compile and run SwingNodeJMenuBar
      2. close window.

      If JMenuBar does not have focus there are no exceptions.

        Attachments

          Activity

            People

            • Assignee:
              ant Anton Tarasov
              Reporter:
              aeremeev Andrei Eremeev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: