cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2965) WrapperClassInInterceptor should check for null wrapperClass
Date Wed, 01 Sep 2010 08:47:54 GMT

     [ https://issues.apache.org/jira/browse/CXF-2965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang resolved CXF-2965.
-------------------------------

    Resolution: Fixed

Applied patch into trunk and cxf-2.2.x branch  with thanks to William.

> WrapperClassInInterceptor should check for null wrapperClass
> ------------------------------------------------------------
>
>                 Key: CXF-2965
>                 URL: https://issues.apache.org/jira/browse/CXF-2965
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>            Reporter: William Tam
>            Assignee: Willem Jiang
>             Fix For: 2.3, 2.2.11
>
>
> I'd suggest to add null pointer check.
> {code}
> Index: rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java
> ===================================================================
> --- rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java
(revision 34)
> +++ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java
(working copy)
> @@ -108,7 +108,7 @@
>              MessagePartInfo wrapperPart = wrappedMessageInfo.getMessagePart(0);
>              Class<?> wrapperClass = wrapperPart.getTypeClass();
>              Object wrappedObject = lst.get(wrapperPart.getIndex());
> -            if (!wrapperClass.isInstance(wrappedObject)) {
> +            if (wrapperClass != null && !wrapperClass.isInstance(wrappedObject))
{
>                  wrappedObject = null;
>                  wrapperPart = null;
>                  wrapperClass = null;
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message