Bug #64 | ResultSet.first() throws Null Pointer Exception | ||
---|---|---|---|
Submitted: | 11 Feb 2003 6:52 | Modified: | 11 Feb 2003 7:27 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 3.0.5 Gamma | OS: | Linux (Red Hat 8.0) |
Assigned to: | CPU Architecture: | Any |
[11 Feb 2003 6:52]
[ name withheld ]
[11 Feb 2003 7:27]
Mark Matthews
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at http://www.mysql.com/downloads/ This was actually fixed a couple of days ago. It's in the nightly snapshots at http://mmmysql.sourceforge.net/snapshots/ or you can wait for 3.0.6 to be released. Basically, the ResultSet should be closed when you issue another query (as per the JDBC spec). The ResultSet implementation for Connector/J does this (which cleans up some object instances, and then sets them to 'null'), but didn't subsequently check in traversal methods whether or not the ResultSet was closed, thus leading to the NullPointerException.