You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2018/04/18 22:32:05 UTC

[jira] [Updated] (DBCP-486) DriverAdapterCPDS.setUser(), setPassword(), and getPooledConnection() with null arguments throw NullPointerExceptions when connection properties are set

     [ https://issues.apache.org/jira/browse/DBCP-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory updated DBCP-486:
------------------------------
    Summary: DriverAdapterCPDS.setUser(), setPassword(), and getPooledConnection() with null arguments throw NullPointerExceptions when connection properties are set  (was: DriverAdapterCPDS.setUser(null) and setPassword(null) throw NullPointerExceptions when connection properties are set)

> DriverAdapterCPDS.setUser(), setPassword(), and getPooledConnection() with null arguments throw NullPointerExceptions when connection properties are set
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DBCP-486
>                 URL: https://issues.apache.org/jira/browse/DBCP-486
>             Project: Commons DBCP
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>            Priority: Major
>             Fix For: 2.2.1
>
>
> The following method calls throw a {{NullPointerException}} when connection properties are set:
> - {{org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.setUser(null)}}, 
> - {{org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.setPassword(null)}} 
> - {{org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.getPooledConnection(null, null)}}
> - {{org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.getPooledConnection("not null", null)}}
> - {{org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.getPooledConnection(null, "not null")}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)