You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Andy Gumbrecht (JIRA)" <ji...@apache.org> on 2016/07/11 21:55:11 UTC

[jira] [Comment Edited] (TOMEE-1860) Potential NPE with DBCP if a shared connection is closed

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

Andy Gumbrecht edited comment on TOMEE-1860 at 7/11/16 9:54 PM:
----------------------------------------------------------------

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


was (Author: andyg):
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)