h-tadagawa / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Cancel Button in "Options" Dialog won't work #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?

The Cancel Button in the "Options" Dialog won't close the windows. Instead
this exception shows up in den Shell:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at
org.wiztools.restclient.ui.OptionsConnectionPanel.setUIFromCache(OptionsConnecti
onPanel.java:178)
    at
org.wiztools.restclient.ui.OptionsConnectionPanel.revertOptions(OptionsConnectio
nPanel.java:192)
    at
org.wiztools.restclient.ui.OptionsDialog.actionCancel(OptionsDialog.java:156)
    at org.wiztools.restclient.ui.OptionsDialog.access$100(OptionsDialog.java:25)
    at org.wiztools.restclient.ui.OptionsDialog$2$1.run(OptionsDialog.java:83)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
69)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180
)
    at java.awt.Dialog$1.run(Dialog.java:535)
    at java.awt.Dialog$2.run(Dialog.java:563)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:561)
    at java.awt.Component.show(Component.java:1302)
    at java.awt.Component.setVisible(Component.java:1255)
    at
org.wiztools.restclient.ui.EscapableDialog.setVisible(EscapableDialog.java:88)
    at org.wiztools.restclient.ui.RESTMain$17.run(RESTMain.java:318)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
69)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

What version of the product are you using? On what operating system?

OS: Mac OS X 10.5

Java: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)

RestClient: restclient-2.2a1-jar-with-dependencies

Original issue reported on code.google.com by bre...@gmail.com on 7 Aug 2008 at 7:36

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. But this exception happens only once--the first time 
when
we launch RESTClient in a particular machine. The next and subsequent times this
exception does not arise. I am facing this in Ubuntu 8.0.4 running OpenJDK1.6.0.

Let me see if I can trap this difficult to debug issue.

Original comment by subwiz on 7 Aug 2008 at 8:54

GoogleCodeExporter commented 8 years ago
Rev.316 has the fix.

Original comment by subwiz on 9 Oct 2008 at 4:07