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 210156 - NullPointerException at org.netbeans.modules.db.dataview.util.DBReadWriteHelper.readResultSet
Summary: NullPointerException at org.netbeans.modules.db.dataview.util.DBReadWriteHelp...
Status: RESOLVED DUPLICATE of bug 206233
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 03:29 UTC by schkovich
Modified: 2012-03-27 19:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186315


Attachments
stacktrace (864 bytes, text/plain)
2012-03-27 03:29 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2012-03-27 03:29:08 UTC
This bug was originally marked as duplicate of bug 157913, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201203260401)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

User Comments:
cloeffler: not all data in table is displayed

schkovich: Executing SQL statement returning empty result set most likely

cloeffler: in DB View i wanted to view data from a table of an informix database. i am connected to the database via odbc




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.db.dataview.util.DBReadWriteHelper.readResultSet(DBReadWriteHelper.java:227)
   at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.loadDataFrom(SQLExecutionHelper.java:511)
   at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.initialDataLoad(SQLExecutionHelper.java:135)
   at org.netbeans.modules.db.dataview.output.DataView.create(DataView.java:105)
   at org.netbeans.modules.db.dataview.api.DataView.create(DataView.java:74)
   at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(SQLExecuteHelper.java:116)
Comment 1 schkovich 2012-03-27 03:29:10 UTC
Created attachment 117294 [details]
stacktrace
Comment 2 matthias42 2012-03-27 19:13:02 UTC
This is most probably a problem with the patches from bug #206233. There blob.free() is called without checking, that there was actually a result (aka the result was not null). A fix is attached to that bug.

Actually duplicate is not quite correct, but is the nearest match to the truth as #206233 was reopened to clean up the collateral damage.

*** This bug has been marked as a duplicate of bug 206233 ***