-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
1.2beta4
-
sparc
-
solaris_2.5.1
-
Verified
Name: aaC67449 Date: 02/11/98
Method JFileChooser.updateUI() throws unexpected NullPointerException.
This bug appears in JDK-1.2beta3-F. It works correctly in earlier versions.
-------------------Example-----------------------------------
import java.awt.swing.preview.*;
public class Test {
public static void main(String argv[]) {
JFileChooser c=new JFileChooser();
c.updateUI();
}
}
-------------------Output------------------------------------
java.lang.NullPointerException
at java.awt.swing.plaf.motif.MotifFileChooserUI.uninstallUI(MotifFileChooserUI.java:134)
at java.awt.swing.JComponent.setUI(JComponent.java:299)
at java.awt.swing.preview.JFileChooser.updateUI(JFileChooser.java:565)
at Test.main(Test.java:11)
======================================================================