[ 
https://issues.apache.org/jira/browse/TOMEE-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371713#comment-15371713
 ] 

Andy Gumbrecht commented on TOMEE-1860:
---------------------------------------

Added try{...}finally{_close = true;} else the connection is not flagged.
Also added a null check in the isClosed method.
Updated test.

> Potential NPE with DBCP if a shared connection is closed
> --------------------------------------------------------
>
>                 Key: TOMEE-1860
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1860
>             Project: TomEE
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.7.5, 7.0.2
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to