Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6058

NPE in cxf-rt-transports-http org.apache.cxf.transport.http.Headers line 280

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2
    • 3.0.3, 2.7.14
    • None
    • None
    • Unknown

    Description

      I'm using @BeanParam, got 2 fields with @HeaderParam, I'm setting only one off those fields.

      After upgrade to 3.0.2 I'm getting NPE in Headers class

      void logProtocolHeaders(Level level) {
              for (String header : headers.keySet()) {
                  List<?> headerList = headers.get(header);
                  for (Object value : headerList) {
                      // value is null
                      LOG.log(level, header + ": " + value.toString());
                  }
              }
          }
      

      Attachments

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              michal.p MichaƂ P
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: