JDK-7130662 : GTK file dialog crashes with a NPE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,linux
  • CPU: generic,x86
  • Submitted: 2012-01-17
  • Updated: 2013-08-08
  • Resolved: 2012-01-25
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
7u40Fixed 8 b23Fixed
Related Reports
Duplicate :  
Description
https://bugs.openjdk.java.net/show_bug.cgi?id=100221

If I try to open a file and then select a file from the 'recently used'
documents list the file dialog crashes. Here is the full exception.

Exception in thread "Thread-10" java.lang.NullPointerException
    at sun.awt.X11.GtkFileDialogPeer.setFileInternal(GtkFileDialogPeer.java:79)
    at sun.awt.X11.GtkFileDialogPeer.run(Native Method)
    at
sun.awt.X11.GtkFileDialogPeer.showNativeDialog(GtkFileDialogPeer.java:166)
    at sun.awt.X11.GtkFileDialogPeer.access$000(GtkFileDialogPeer.java:39)
    at sun.awt.X11.GtkFileDialogPeer$1.run(GtkFileDialogPeer.java:108)


I've got Gnome 3 on linux mint 12 and I'm using the default openjdk version.

Comments
EVALUATION A patch is contributed at http://mail.openjdk.java.net/pipermail/awt-dev/2012-January/002154.html
17-01-2012