-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
swing1.0.2
-
sparc
-
solaris_2.5.1
-
Verified
Name: aaC67449 Date: 02/11/98
Method JToolBar.updateUI() throws unexpected NullPointerException.
This bug appears in JDK-1.2beta3-F. It works correctly in earlier versions.
-------------------Example-----------------------------------
import java.awt.swing.*;
public class Test {
public static void main(String argv[]) {
JToolBar t=new JToolBar();
t.updateUI();
}
}
-------------------Output------------------------------------
java.lang.NullPointerException
at java.awt.swing.plaf.basic.BasicToolBarUI.setFloating(BasicToolBarUI.java:226)
at java.awt.swing.plaf.basic.BasicToolBarUI.uninstallUI(BasicToolBarUI.java:106)
at java.awt.swing.JComponent.setUI(JComponent.java:299)
at java.awt.swing.JToolBar.setUI(JToolBar.java:83)
at java.awt.swing.JToolBar.updateUI(JToolBar.java:94)
at Test.main(Test.java:9)
======================================================================