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

Method JFileChooser.updateUI() throws unexpected NullPointerException.

XMLWordPrintable

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


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

            jeff Jeff Dinkins
            aalievsunw Artem Aliev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: