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

Null Pointer Exception is thrown when Focus Transfer occurs in synchronous mode

XMLWordPrintable

    • sparc
    • solaris_8

      Using the First Oracle Specific build(developed for Oracle Corpn only) post merlin, we observed a Null Pointer Exception when requesting focus synchronously using the API setLWRequestFocus.

      To reproduce the bug- run the attached test case and the Exception thrown was observed as follows.

      java.lang.NullPointerException
              at java.awt.KeyboardFocusManager.dispatchFocusEvent(KeyboardFocusManager.java:2675)
              at java.awt.KeyboardFocusManager.processSynchronousLightweightTransfer(KeyboardFocusManager.java:2062)
              at sun.awt.motif.MComponentPeer.processSynchronousLightweightTransfer(Native Method)
              at sun.awt.motif.MComponentPeer.requestFocus(MComponentPeer.java:443)
              at java.awt.Component.requestFocusHelper(Component.java:6032)
              at java.awt.Component.requestFocusInWindow(Component.java:5952)
              at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:281)
              at CustomDefaultKeyBoardFocusManager.dispatchEvent(setLWRequestStatusGUI.java:168)
              at java.awt.Component.dispatchEventImpl(Component.java:3396)
              at java.awt.Container.dispatchEventImpl(Container.java:1582)
              at java.awt.Window.dispatchEventImpl(Window.java:1568)
              at java.awt.Component.dispatchEvent(Component.java:3367)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
              at java.awt.SequencedEvent.dispatch(SequencedEvent.java:105)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)



            prssunw Prs Prs (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: