Derby
  1. Derby
  2. DERBY-3307

NPE in PooledConnction event notification handling if a null listener is added

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.3.2.1, 10.4.1.3
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: JDBC
    • Labels:
      None

      Description

      If a null reference is passed in to one of the ClientPooledConnection.addXEventListener, a NPE will be thrown if an event occurs.
      I will attach a simple repro as a patch to the test jdbc4.StatementEventsTests. I believe the situation is the same for connection event listeners.

      I have found no information in the specs regarding null listeners, but I assume it would be okay to ignore them.

      1. d3307.diff
        4 kB
        Knut Anders Hatlen
      2. derby-3307-1a-test_repro.diff
        1 kB
        Kristian Waagan

        Issue Links

          Activity

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Kristian Waagan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development