[hg] main-silver: #232659: NPE - grab table structure in Service...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: #232659: NPE - grab table structure in Service...
  • Date: Wed, 17 Jul 2013 00:49:06 -0700

changeset 8cd92e5de873 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/8cd92e5de873
description:
        #232659: NPE - grab table structure in Services window

diffstat:

 db/src/org/netbeans/modules/db/explorer/DatabaseConnector.java |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/db/src/org/netbeans/modules/db/explorer/DatabaseConnector.java 
b/db/src/org/netbeans/modules/db/explorer/DatabaseConnector.java
--- a/db/src/org/netbeans/modules/db/explorer/DatabaseConnector.java
+++ b/db/src/org/netbeans/modules/db/explorer/DatabaseConnector.java
@@ -270,7 +270,8 @@
             }
 
             DriverSpecification drvSpec = 
this.getDriverSpecification(catName);
-            if (! schema.isDefault() && schema.getName().length() > 0) {
+            if (!schema.isDefault() && schema.getName() != null
+                    && schema.getName().length() > 0) {
                 drvSpec.setSchema(schema.getName());
             }
             drvSpec.getColumns(table.getName(), column.getName());

[hg] main-silver: #232659: NPE - grab table structure in Service...

Jaroslav Havlin 07/17/2013

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