Commons Dbcp
  1. Commons Dbcp
  2. DBCP-403

DelegatingStatement.close() fails with NPE if statement is null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      DelegatingStatement.close() fails with NPE if the _stmt field is null.

      The code should check whether the field is null before trying to close the statement.

        Activity

        Phil Steitz made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Sebb made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0 [ 12313721 ]
        Resolution Fixed [ 1 ]
        Sebb made changes -
        Field Original Value New Value
        Summary DelegatingStatement.close() can fail with NPE if statement is null DelegatingStatement.close() fails with NPE if statement is null
        Sebb created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development