Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4111388

Method JToolBar.updateUI() throws unexpected NullPointerException.

XMLWordPrintable

    • 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)



      ======================================================================

            gsaab Georges Saab
            aalievsunw Artem Aliev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: