JDK-8043610 : Sorting columns in JFileChooser fails with AppContext NPE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u51,8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_7
  • Submitted: 2014-05-21
  • Updated: 2015-12-07
  • Resolved: 2014-05-23
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 7 JDK 8 JDK 9
7u75Fixed 8u31Fixed 9 b22Fixed
Related Reports
Relates :  
Relates :  
Description
When trying to sort columns in JFileChooser in plugin environment the following exception is thrown:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
	at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
	at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
	at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
	at java.awt.Toolkit.getEventQueue(Unknown Source)
	at java.awt.EventQueue.isDispatchThread(Unknown Source)
	at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
	at javax.swing.JComponent.revalidate(Unknown Source)
	at javax.swing.JTable.resizeAndRepaint(Unknown Source)
	at javax.swing.JTable.sortedTableChanged(Unknown Source)
	at javax.swing.JTable.sorterChanged(Unknown Source)
	at javax.swing.RowSorter.fireRowSorterChanged(Unknown Source)
	at javax.swing.RowSorter.fireRowSorterChanged(Unknown Source)
	at javax.swing.DefaultRowSorter.sort(Unknown Source)
	at sun.swing.FilePane$DetailsTableRowSorter.access$1601(Unknown Source)
	at sun.swing.FilePane$DetailsTableRowSorter$1.call(Unknown Source)
	at sun.swing.FilePane$DetailsTableRowSorter$1.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Comments
SQE OK to take the low risk fix to CPU15_01
14-11-2014

Critical request: - Justification: Regression which highly affects user experience. - Risk Analysis: Low, the fix gets the AppContext associated with the component rather than the AppContext associated with the thread. - Webrev: http://cr.openjdk.java.net/~pchelko/9/8043610/webrev/ - Review thread: http://mail.openjdk.java.net/pipermail/awt-dev/2014-May/007846.html - Testing (done/to-be-done): Automatic regression test is included. Sort JFileChooser columns in an applet or a WebStart application. - Back ports (done/to-be-done): Done - FX Impact: No
13-11-2014

JDK 7 backport - Aiming for PSU15_01 for this one.
19-08-2014

please back port it to 8u
01-07-2014