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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.0.6
    • 2.1.1, 2.0.7
    • JAX-WS Runtime
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: