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

FileChooserDemo throws exceptions when accessing an empty floppy drive on win95

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • generic, solaris_2.6, windows_nt
    • Verified

      With the FileChooserDemo, if you try to access the A: drive (floppy) and there's no floppy in the drive, exceptions are thrown. This occurs with swing-1.1beta2 (promoted 8/11/98) and JDK1.1.6.

      Steps to Reproduce:
      0) Launch FileChooserDemo with the configuration above.
      1) Click Show FileChooser button.
      2) Use the top ComboBox to select the A: drive.
      RESULT: The following exceptions are thrown:
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at com.sun.java.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxMod
      el.addItem(Compiled Code)
              at com.sun.java.swing.plaf.metal.MetalFileChooserUI$3.propertyChange(Com
      piled Code)
              at com.sun.java.swing.event.SwingPropertyChangeSupport.firePropertyChang
      e(Compiled Code)
              at com.sun.java.swing.JComponent.firePropertyChange(Compiled Code)
              at com.sun.java.swing.JFileChooser.setCurrentDirectory(Compiled Code)
              at com.sun.java.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxAct
      ion.actionPerformed(Compiled Code)
              at com.sun.java.swing.JComboBox.fireActionEvent(Compiled Code)
              at com.sun.java.swing.JComboBox.selectedItemChanged(Compiled Code)
              at com.sun.java.swing.JComboBox.contentsChanged(Compiled Code)
              at com.sun.java.swing.AbstractListModel.fireContentsChanged(Compiled Cod
      e)
              at com.sun.java.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxMod
      el.setSelectedItem(Compiled Code)
              at com.sun.java.swing.JComboBox.setSelectedItem(Compiled Code)
              at com.sun.java.swing.JComboBox.setSelectedIndex(Compiled Code)
              at com.sun.java.swing.plaf.basic.BasicComboPopup$InvocationMouseHandler.
      mouseReleased(BasicComboPopup.java:404)
              at java.awt.AWTEventMulticaster.mouseReleased(Compiled Code)
              at java.awt.AWTEventMulticaster.mouseReleased(Compiled Code)
              at java.awt.Component.processMouseEvent(Compiled Code)
              at java.awt.Component.processEvent(Compiled Code)
              at java.awt.Container.processEvent(Compiled Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Window.dispatchEventImpl(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)

            jeff Jeff Dinkins
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: