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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3, 2.7.14
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      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

              • Assignee:
                dkulp Daniel Kulp
                Reporter:
                michal.p Michał P
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: