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.lib.ddl.adaptors.DefaultAdaptor.getDatabaseProductName | ||
---|---|---|---|
Product: | db | Reporter: | xylifyx <xylifyx> |
Component: | Code | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Alniks, luki100011 |
Priority: | P3 | Keywords: | NETFIX |
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 180554 |
Attachments: | stacktrace |
Description
xylifyx
2012-01-02 10:15:54 UTC
Created attachment 114548 [details]
stacktrace
*** Bug 213602 has been marked as a duplicate of this bug. *** This looks like a typical jdbc driver problem - returning NULL as productname seems not to be sensible - whatever... If the start of line 505 is changed from if (dmd != null) product = dmd.getDatabaseProductName().trim(); to if (dmd != null && dmd.getDatabaseProductName() != null) product = dmd.getDatabaseProductName().trim(); this bug can be closed. I don't see how else a NULL Pointer Exception could be created. http://hg.netbeans.org/core-main/rev/00eb8db06c53 Fixed. Thank you, Matthias! Integrated into 'main-golden', will be available in build *201301290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/00eb8db06c53 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #206835: NPE at o.n.lib.ddl.adaptors.DefaultAdaptor.getDatabaseProductName |