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

Method JToolBar.updateUI() throws unexpected NullPointerException.

    Details

    • Subcomponent:
    • Resolved In Build:
      swing1.0.2
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Description



      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)



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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: