tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Gumbrecht (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TOMEE-1860) Potential NPE with DBCP if a shared connection is closed
Date Mon, 11 Jul 2016 21:55:11 GMT

    [ 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)

Mime
View raw message