[
https://issues.apache.org/jira/browse/OPENJPA-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17982029#comment-17982029
]
Maxim Solodovnik commented on OPENJPA-2938:
-------------------------------------------
Introduced by the fix for OPENJPA-2773
> Certain combination of ConnectionProperties can lead to NPE
> -----------------------------------------------------------
>
> Key: OPENJPA-2938
> URL: https://issues.apache.org/jira/browse/OPENJPA-2938
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 4.1.1
> Reporter: Maxim Solodovnik
> Assignee: Maxim Solodovnik
> Priority: Major
> Fix For: 4.1.2
>
>
> Certain combination of ConnectionProperties can lead to NPE
> hasKey method used equalsIgnoreCase, so if I set MaxActive=10 to
> openjpa.ConnectionProperties and no "maxIdle" property for example ,
> <property name="openjpa.ConnectionProperties"
> value="autoReconnect=true,MaxActive=10,MaxWait=6000,TestOnBorrow=true"/>
> dbcpProps.setProperty("maxIdle", dbcpProps.getProperty("maxActive")) will
> throw java.lang.NullPointerException
> initially reported here:
> https://github.com/apache/openjpa/commit/fa6ce77004739d9601bfde43e06f9446ab601698#commitcomment-34251470
--
This message was sent by Atlassian Jira
(v8.20.10#820010)