Bug 928500

Summary: GTK file dialog crashes with a NPE [PATCH]
Product: [Fedora] Fedora Reporter: Gianluca Sforna <giallu>
Component: java-1.7.0-openjdkAssignee: Mario Torre <neugens>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: ahughes, bhenryj0117, dbhole, jerboaa, jvanek, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-22 08:57:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gianluca Sforna 2013-03-27 19:08:35 UTC
Description of problem:

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)

This is known upstream in:
http://bugs.sun.com/view_bug.do?bug_id=7130662

and a patch is available:
http://hg.openjdk.java.net/jdk8/awt/jdk/raw-diff/89bc9d08fe82/src/solaris/classes/sun/awt/X11/GtkFileDialogPeer.java

Please consider applying it

Comment 1 Gianluca Sforna 2013-03-27 19:12:14 UTC
*** Bug 881425 has been marked as a duplicate of this bug. ***

Comment 2 Mario Torre 2013-03-27 19:25:40 UTC
Hello Gianluca,

Since a patch has been pushed upstream already, we need to wait for the fix to be backported in 7.

I'll take care to ask for the backport asap.

Thanks for reporting this,

Mario

Comment 3 Andrew John Hughes 2013-04-03 00:32:09 UTC
No movement on this in the last week, so I posted this for backport:

http://mail.openjdk.java.net/pipermail/jdk7u-dev/2013-April/006047.html

Comment 4 Andrew John Hughes 2013-04-03 15:31:08 UTC
This was approved:

http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/885ad3351534

It's also now in IcedTea:

http://icedtea.classpath.org/hg/icedtea7-forest/jdk/rev/885ad3351534

and should be included in the next security update.

Comment 5 Mario Torre 2013-04-22 08:57:57 UTC
Closing this bug now, since the back port has been done and released.