Bug 928500 - GTK file dialog crashes with a NPE [PATCH]
Summary: GTK file dialog crashes with a NPE [PATCH]
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.7.0-openjdk
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mario Torre
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 881425 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-27 19:08 UTC by Gianluca Sforna
Modified: 2013-04-22 08:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-22 08:57:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.