This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 8.0 (Build 201403101706) VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12 OS: Linux User Comments: jcrada: Retrieving data from Teradata database jcrada: retrieving data from teradata database Stacktrace: java.lang.NullPointerException at org.netbeans.modules.db.explorer.node.IndexNodeProvider$IndexComparator.compare(IndexNodeProvider.java:138) at org.netbeans.modules.db.explorer.node.IndexNodeProvider$IndexComparator.compare(IndexNodeProvider.java:134) at java.util.TreeMap.compare(TreeMap.java:1291) at java.util.TreeMap.put(TreeMap.java:538) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
Created attachment 148583 [details] stacktrace
Looks like the DB-metadata does not report an index name. This could be: a) A bogus index (statistics entry, that was not marked as such) or b) really an index without a name I'll asume the second case. For that this should work: # This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/matthias/NetBeansProjects/core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: db/src/org/netbeans/modules/db/explorer/node/IndexNode.java --- db/src/org/netbeans/modules/db/explorer/node/IndexNode.java +++ db/src/org/netbeans/modules/db/explorer/node/IndexNode.java @@ -104,7 +104,9 @@ new Action<Metadata>() { public void run(Metadata metaData) { Index index = indexHandle.resolve(metaData); + if(index.getName() != null) { name = index.getName(); + } updateProperties(index); } }
The proposed fix was merged as: http://hg.netbeans.org/core-main/rev/3529f2a36a40 In the next few days a nightly build will be available (a message is added here then). Please check if this fixes your problem. If so change the status of this bug to "VERIFIED".
Integrated into 'main-silver', will be available in build *201502020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3529f2a36a40 User: Matthias Blaesing <matthias42@netbeans.org> Log: #246317: Prevent NullPointerException -- ensure that Index-Name is never null