Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3307

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.2.1, 10.4.1.3
    • 10.4.2.0, 10.5.1.1
    • JDBC
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: