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.

Bug 258521 - NullPointerException at org.netbeans.modules.db.metadata.model.jdbc.JDBCSchema.createProcedures
Summary: NullPointerException at org.netbeans.modules.db.metadata.model.jdbc.JDBCSchem...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-24 13:41 UTC by crimcat
Modified: 2016-03-27 02:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 223174


Attachments
stacktrace (1.55 KB, text/plain)
2016-03-24 13:41 UTC, crimcat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crimcat 2016-03-24 13:41:47 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: Windows 7

User Comments:
crimcat: Working with Hadoop database.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCSchema.createProcedures(JDBCSchema.java:226)
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCSchema.initProcedures(JDBCSchema.java:292)
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCSchema.getProcedures(JDBCSchema.java:129)
   at org.netbeans.modules.db.metadata.model.api.Schema.getProcedures(Schema.java:146)
   at org.netbeans.modules.db.explorer.node.ProcedureNodeProvider$1.run(ProcedureNodeProvider.java:122)
   at org.netbeans.modules.db.explorer.node.ProcedureNodeProvider$1.run(ProcedureNodeProvider.java:116)
Comment 1 crimcat 2016-03-24 13:41:49 UTC
Created attachment 158994 [details]
stacktrace
Comment 2 matthias42 2016-03-24 21:12:13 UTC
Please state which JDBC driver and version you are using.
Comment 3 matthias42 2016-03-25 15:39:34 UTC
Ok - I now extended the NULL-guards that were already in place to cover this case also. The fix was pushed as:

http://hg.netbeans.org/core-main/rev/e143e57a86c4

In the next few days a nightly build will be created, that contains a fix - by then a message will be appended here. Please check that version if the fix addresses your problem. If so please change the Status of this bug to VERIFIED.
Comment 4 Quality Engineering 2016-03-27 02:57:18 UTC
Integrated into 'main-silver', will be available in build *201603270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e143e57a86c4
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #258521: Handle JDBC drivers that return NULL instead of empty ResultSet as result of getProcedures, getFunctions, getTables