JDK-8046194 : [macosx] Appcontext NPE in MacOSXKeyHandler
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2014-06-06
  • Updated: 2016-09-23
  • Resolved: 2016-03-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Description
Steps to reproduce:
1. Open applet and java console
2. Open OS X Console.app
3. Focus applet or java console
4. Hit some buttons, you will so this in the Console.app:

06.06.14 11:09:02,553 java[98031]: java.lang.NullPointerException
	at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1081)
	at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1076)
	at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1071)
	at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
	at java.awt.EventQueue.invokeLater(EventQueue.java:1251)
	at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)

EventQueue.invokeLater should be change to something that explicitly sets the AppContext.
Comments
I've not been able to reproduce this.
18-03-2016