harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4666) [classlib][swing] BasicOptionPaneUI$ButtonActionListener causes NPE in the EventDispatchThread
Date Wed, 22 Aug 2007 09:02:30 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Pavlenko updated HARMONY-4666:
-------------------------------------

    Component/s: Classlib
        Summary: [classlib][swing] BasicOptionPaneUI$ButtonActionListener causes NPE in the
EventDispatchThread  (was: [classlib][awt] BasicOptionPaneUI$ButtonActionListener causes NPE
in the EventDispatchThread)

> [classlib][swing] BasicOptionPaneUI$ButtonActionListener causes NPE in the EventDispatchThread
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4666
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4666
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrey Pavlenko
>
> To reproduce this issue uncomment t.printStackTrace(); in the java.awt.EventDispatchThread.runModalLoop(ModalContext)
method, run the following code and press the "OK" button.
> import javax.swing.JFrame;
> import javax.swing.JOptionPane;
> public class SwingTest {
> 	public static void main(String[] args) {
> 		JFrame f = new JFrame();
> 		JOptionPane.showMessageDialog(f, "Push the button below");
> 		f.dispose();
> 	}
> }
> Output:
> java.lang.NullPointerException
> 	at javax.swing.plaf.basic.BasicOptionPaneUI$ButtonActionListener.actionPerformed(BasicOptionPaneUI.java:274)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:704)
> 	at javax.swing.AbstractButton$ActionAndModelListener.actionPerformed(AbstractButton.java:241)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:220)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:152)
> 	at javax.swing.plaf.basic.BasicButtonListener$ReleaseButtonAction.release(BasicButtonListener.java:68)
> 	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:126)
> 	at java.awt.Component.processMouseEventImpl(Component.java:3973)
> 	at java.awt.Component.processMouseEvent(Component.java:3954)
> 	at java.awt.Component.processEvent(Component.java:3637)
> 	at java.awt.Container.processEvent(Container.java:1293)
> 	at java.awt.Component.dispatchEvent(Component.java:3547)
> 	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:149)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
> 	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:68)
> 	at java.awt.ModalContext.runModalLoop(ModalContext.java:43)
> 	at java.awt.Dialog$DialogModalContext.runModalLoop(Dialog.java:41)
> 	at java.awt.Dialog.showModal(Dialog.java:362)
> 	at java.awt.Dialog.access$0(Dialog.java:351)
> 	at java.awt.Dialog$1.run(Dialog.java:254)
> 	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
> 	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
> 	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:68)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message