Bug #377 NullPointerException at Statement.close()
Submitted: 6 May 2003 3:44 Modified: 21 May 2003 8:06
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S1 (Critical)
Version:3.1.0 alpha OS:Linux (linux)
Assigned to: CPU Architecture:Any

[6 May 2003 3:44] [ name withheld ]
Description:

In a certain situation, Statement.close() makes an null point exception
at line, this.connection.unregisterStatement()

How to repeat:

Suggested fix:

I add it and go well.

if (this.connection != null)
this.connection.unregisterStatement(this);
[21 May 2003 8:06] Mark Matthews
This is fixed in the latest version(s) of Connector/J (3.0.x and 3.1.x). You can test them by using the latest snapshots after 00:00 GMT on May 22, 2003 (when the nightly snapshot builds are run and uploaded). Snapshots are downloadable from http://mmmysql.sourceforge.net/snapshots/