(2012-01-16) (Matt) <[email protected]>

        openjdk/jdk/src/solaris/classes/sun/awt/X11/GtkFileDialogPeer.java

        A fix was made to add a path separator to the end of the directory.
        The trailing slash fix can cause a NPE when the directory is null.
        This patch checks to see if the directory passed in is null, if it
        is not null then checks for a trailing path separator.
73c73
<         if (filenames == null) {
---
>         if ( filenames == null ) {
79,81c79,85
<             accessor.setDirectory(fd, directory +
<                     (directory.endsWith(File.separator) ?
<                      "" : File.separator));
---
>             //directory can be null with Gtk 3.
>             String with_separator = directory;
>             if(directory!=null){
>                 with_separator = (directory.endsWith(File.separator) ?
>                      directory : directory + File.separator)
>             }
>             accessor.setDirectory(fd, with_separator);
82a87
>             //should this also use the trailing slash?

Reply via email to