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.
Summary: | NullPointerException at org.netbeans.modules.db.explorer.node.IndexNodeProvider$IndexComparator.compare | ||
---|---|---|---|
Product: | db | Reporter: | jcrada <jcrada> |
Component: | Code | Assignee: | matthias42 |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH_AVAILABLE |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 211135 |
Attachments: | stacktrace |
Description
jcrada
2014-08-07 03:56:41 UTC
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 |