[
https://issues.apache.org/jira/browse/DBCP-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved DBCP-403.
-----------------------
Resolution: Fixed
Fix Version/s: 2.0
Note: this was found by fixing Eclipse warnings about unclosed resources
URL: http://svn.apache.org/r1537577
Log:
DBCP-403 DelegatingStatement.close() fails with NPE if statement is null
Modified:
commons/proper/dbcp/trunk/src/changes/changes.xml
commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/DelegatingStatement.java
> DelegatingStatement.close() fails with NPE if statement is null
> ---------------------------------------------------------------
>
> Key: DBCP-403
> URL: https://issues.apache.org/jira/browse/DBCP-403
> Project: Commons Dbcp
> Issue Type: Bug
> Reporter: Sebb
> Fix For: 2.0
>
>
> DelegatingStatement.close() fails with NPE if the _stmt field is null.
> The code should check whether the field is null before trying to close the
> statement.
--
This message was sent by Atlassian JIRA
(v6.1#6144)