-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.7, 1.2.0
-
generic, x86
-
generic, windows_nt
Name: krT82822 Date: 12/15/98
1) Run FileChooserDemo
2) Use Metal LF, click on "Show FileChooser"
3) Select a directory with just some files and subdirectories
(empty directory preferred) so there are some white space
left at the bottom
4) Click on that white space slowly, several time.
Try clicking in several ways, click, double click,
pressed the button for a while and release it and then click, etc.
It is not always happen, but it does.
This include Swing 1.1 + JDK 1.1.7.
D:\jdk1.2\demo\jfc\FileChooserDemo>java FileChooserDemo
Exception occurred during event dispatching:
java.lang.NullPointerException:
at javax.swing.plaf.metal.MetalFileChooserUI$SingleClickListener.mouseCl
icked(MetalFileChooserUI.java:383)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
1)
at java.awt.Component.processMouseEvent(Component.java:3129)
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.Component.dispatchEvent(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.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
Exception occurred during event dispatching:
java.lang.NullPointerException:
at javax.swing.plaf.metal.MetalFileChooserUI$SingleClickListener.mouseCl
icked(MetalFileChooserUI.java:383)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
1)
at java.awt.Component.processMouseEvent(Component.java:3129)
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.Component.dispatchEvent(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.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
Exception occurred during event dispatching:
java.lang.NullPointerException:
at javax.swing.plaf.metal.MetalFileChooserUI$SingleClickListener.mouseCl
icked(MetalFileChooserUI.java:383)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
1)
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.Component.dispatchEvent(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.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
(Review ID: 47956)
======================================================================
- duplicates
-
JDK-4201985 Second mouse click in empty JFileChooser view causes NPE
-
- Resolved
-