From cca539a060ac6f7216304a54aa1d2b7a64ce5797 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Sun, 05 Aug 2007 11:19:47 +0000
Subject: [PATCH] Fix for issue 2059.
---
opends/src/statuspanel/org/opends/statuspanel/ui/LoginDialog.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/opends/src/statuspanel/org/opends/statuspanel/ui/LoginDialog.java b/opends/src/statuspanel/org/opends/statuspanel/ui/LoginDialog.java
index 56ef2c9..42bce6b 100644
--- a/opends/src/statuspanel/org/opends/statuspanel/ui/LoginDialog.java
+++ b/opends/src/statuspanel/org/opends/statuspanel/ui/LoginDialog.java
@@ -355,7 +355,8 @@
{
BackgroundTask worker = new BackgroundTask()
{
- public Object processBackgroundTask() throws NamingException
+ public Object processBackgroundTask() throws NamingException,
+ ConfigException
{
Boolean isServerRunning = Boolean.TRUE;
InitialLdapContext ctx = null;
@@ -472,7 +473,7 @@
throw ne;
}
isServerRunning = Boolean.FALSE;
- } catch (Error e)
+ } catch (ConfigException e)
{
throw e;
} catch (IllegalStateException ise)
@@ -779,12 +780,12 @@
{
LOG.log(Level.INFO, "Accepting certificate presented by host "+host);
getTrustManager().acceptCertificate(chain, authType, host);
- /* Simulate a click on the OK */
+ /* Simulate a click on the OK by calling in the okClicked method. */
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
- okButton.doClick();
+ okClicked();
}
});
}
--
Gitblit v1.10.0