Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-307

NullPointerException in deserialized AccessEvent.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Operating System: Windows
      Platform: All

    • 109

    Description

      The following methods throw NPE's in case of deserialized AccessEvents. They should instead retun null.

      getRequestHeaderNames()
      buildRequestHeaderMap()
      buildRequestParameterMap()
      getResponseHeader(String key)
      getResponseHeaderNameList()
      getRequestContent()
      getStatusCode() (possibly, wrong if condition)
      getContentLength() (possibly, wrong if condition)
      getResponseContent() (please check)

      Attachments

        1. 109Patch.patch
          7 kB
        2. 109Patch2.patch
          8 kB
        3. 109Patch3.patch
          6 kB
        4. AccessEventNPE.patch
          3 kB

        Activity

          People

            logback-dev Logback dev list
            joern@huxhorn.de Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: