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

Passing null to an "object array" or "object list" parameter results in NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.0.6
    • Fix Version/s: 2.1.1, 2.0.7
    • Component/s: JAX-WS Runtime
    • Labels:
      None

      Description

      If a "null" is passed for a List<String> parameter when using unwrapped doc/lit stuff and using wsdl2java generated wrapper types, a stack trace is dumped:

      Caused by: java.lang.NullPointerException
      at java.util.ArrayList.addAll(ArrayList.java:472)
      at com.foo.blah.BlahArray_WrapperTypeHelper1.createWrapperObject(Unknown Source)
      at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:102)

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              dkulp Daniel Kulp
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: