JDK-5003410 : JFileChooser: NPE when creating read-only file chooser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-02-25
  • Updated: 2004-03-15
  • Resolved: 2004-03-15
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.
Other
5.0 b43Fixed
Related Reports
Relates :  
Description
JFileChooser now supports a UI defaults property "FileChooser.readOnly" which
prevents creation of new folders and renaming files. If setting this property
to false, then FilePane crashes with a NullPointerException.

java.lang.NullPointerException
        at sun.swing.FilePane.addActionsToMap(FilePane.java:354)
        at sun.swing.FilePane.createActionMap(FilePane.java:346)
        at sun.swing.FilePane.<init>(FilePane.java:124)
        at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFile
ChooserUI.java:185)
        at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserU
I.java:135)
        [...]

###@###.### 2004-02-25

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b43 tiger-beta2
14-06-2004

EVALUATION FilePane creates an action map with null references. These should be removed. ###@###.### 2004-02-25
25-02-2004