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. derby-3307-1a-test_repro.diff
        1 kB
        Kristian Waagan
      2. d3307.diff
        4 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Kristian Waagan created issue -
          Kristian Waagan made changes -
          Field Original Value New Value
          Attachment derby-3307-1a-test_repro.diff [ 12372782 ]
          Kristian Waagan made changes -
          Link This issue incorporates DERBY-3695 [ DERBY-3695 ]
          Knut Anders Hatlen made changes -
          Assignee Knut Anders Hatlen [ knutanders ]
          Knut Anders Hatlen made changes -
          Attachment d3307.diff [ 12383735 ]
          Knut Anders Hatlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.5.0.0 [ 12313010 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.4.1.4 [ 12313112 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Kristian Waagan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Rick Hillegas made changes -
          Fix Version/s 10.4.2.0 [ 12313345 ]
          Fix Version/s 10.4.1.4 [ 12313112 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.5.1.1 [ 12313771 ]
          Fix Version/s 10.5.0.0 [ 12313010 ]
          Gavin made changes -
          Workflow jira [ 12420497 ] Default workflow, editable Closed status [ 12800741 ]

            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