|
From: | Beat Wolf |
Subject: | [bug-classpath] [bug #13556] swing: JFileChooser("/thisdoesnotexist") throws NullPointerException |
Date: | Wed, 6 Jul 2005 13:20:05 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 |
Follow-up Comment #1, bug #13556 (project classpath): This is the bugfix: change in javax.swing.filechooser.FileSystemView the following method: public File createFileObject(String path) { return new File(path); } to this one: public File createFileObject(String path) { File temp = new File(path); if(temp.isDirectory()) return temp; return null; } The patch is under 10 lines, so you can take it. And its trivial _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13556> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |