Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-486

DriverAdapterCPDS.setUser(), setPassword(), and getPooledConnection() with null arguments throw NullPointerExceptions when connection properties are set

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              ggregory Gary D. Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: