[hg] main-silver: #217880: IllegalStateException: This connectio...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: #217880: IllegalStateException: This connectio...
  • Date: Tue, 18 Dec 2012 10:38:42 -0800

changeset 23b927870b46 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/23b927870b46
description:
        #217880: IllegalStateException: This connection is not added to the 
ConnectionManager

diffstat:

 db.mysql/src/org/netbeans/modules/db/mysql/actions/ConnectAction.java |  4 
++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git 
a/db.mysql/src/org/netbeans/modules/db/mysql/actions/ConnectAction.java 
b/db.mysql/src/org/netbeans/modules/db/mysql/actions/ConnectAction.java
--- a/db.mysql/src/org/netbeans/modules/db/mysql/actions/ConnectAction.java
+++ b/db.mysql/src/org/netbeans/modules/db/mysql/actions/ConnectAction.java
@@ -127,6 +127,10 @@
                 // to the database explorer.
                 ConnectionManager.getDefault().addConnectionListener(new 
ConnectionListener() {
                     public void connectionsChanged() {
+                        if (ConnectionManager.getDefault().getConnection(
+                                dbconn.getName()) == null) {
+                            return; // this is not the right event, see 
#217880
+                        }
                         
ConnectionManager.getDefault().showConnectionDialog(dbconn);
                         
ConnectionManager.getDefault().removeConnectionListener(this);
                     }

[hg] main-silver: #217880: IllegalStateException: This connectio...

Jaroslav Havlin 12/18/2012

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close