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

Merlinb51:JFileChooser demo:NullPointerException on clicking List button

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta
    • x86
    • windows_2000
    • Verified

      Clicking the 'List' view button raises NullPointerException on Win2000.

      Steps to reproduce:

      1) Launch FileChooserDemo
      2) Click the ShowFileChooser button to launch the Open FileChooser dialog.
      3) By default List view is selected in the FileChooserDialog. Now click on the List view button.
      The following exception is raised:

      java.lang.NullPointerException
         at java.awt.Container.remove(Container.java:564)
         at javax.swing.plaf.metal.MetalFileChooserUI$1$ViewButtonListner.ationPerformed(MetalFileChooserUI.java:253)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1598)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1652)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:415)
         at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:267)
         at javax.swing.plaf.basic.BasicButtonListner.mouseReleased(BasicButtonListner.java:252)
         at java.awt.AWREventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
         at java.awt.Component.processMouseEvent(Component.java:4862)
         at java.awt.Component.processEvent(Component.java:4688)
         at java.awt.Container.pr0cessEvent(Container.java:1299)
         at java.awt.Component.dispatchEventImpl(Component.java:3460)
         at java.awt.Container.dispatchEventImpl(Container.java:1361)
         at java.Component.dispatchEvent(Component.java:3327)
         at java.awt.LightweightDispatcher.retragetMouseEvent(container.java:3175)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2887)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2845)
         at java.awt.Container.DispatchEventImpl(Window.java:1338)
         at java.awt.Component.DispatchEvent(Component.java:3327)
         at java.awt.EventQueue.DispatchEvent(EventQueue.java:437)
         at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
         at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:121)
         at java.awt.Dialog.show(Dialog.java:466)
         at javax.swing.JFileChooser.showdialog(JFileChooser.java:684)
         at FileChooserDemo.actionPerformed(fileChooserDemo.java:371)
         at javax.swing.Abstractbutton.fireActionPerformed(AbstractButton.java:1598)
         at javax.swing.AbstractbuttonForwardActionEvents.actionPerformed(AbstractButton.java:1652)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:425)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:251)
         at javax.swing.plaf.basic.BasicButtonListner.mouseReleased(BasicButtonListner.java:252)
         at java.awt.Component.processMouseEvent(Component.java:4862)
         at java.awt.Component.processEvent(Component.java:4688)
         at java.awt.Container.processEvent(Container.java:1299)
         at java.awt.Component.dispatchEventImpl(Component.java:3460)
         at java.awt.Container.dispatchEventImpl(Container.java:1361)
         at java.awt.Component.dispatchEvent(Component.java:3327)
         at java.awt.LightWeightDispatcher.retargetMouseEvent(Container.java:3175)


      This bug started in Merlinb50.

      Result of java -version:
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b51)
      Java HotSpot(TM) Client VM (build B51, mixed mode)


      ruchika.mehdiratta@Eng 2001-02-13

            leifs Leif Samuelsson (Inactive)
            rmehdirasunw Ruchika Mehdiratta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: