You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2008/12/15 20:31:44 UTC

[jira] Resolved: (AXIS2-4178) NullPointerException PropertyDescriptorPlus, missing null check

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

Jarek Gawor resolved AXIS2-4178.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5
         Assignee: Jarek Gawor

Committed the null check to trunk (revision 726779). Thanks for finding and reporting it!


> NullPointerException PropertyDescriptorPlus, missing null check
> ---------------------------------------------------------------
>
>                 Key: AXIS2-4178
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4178
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.4.1, 1.4
>         Environment: windows
>            Reporter: Ben Reif
>            Assignee: Jarek Gawor
>            Priority: Minor
>             Fix For: 1.5
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> PropertyDescriptorPlus.get(Object targetBean) is missing a Null check:
> Object ret = method.invoke(targetBean, null);
> if (method.getReturnType() == JAXBElement.class) {
>       ret = ((JAXBElement) ret).getValue();
> }
> return ret;
> Should be changed to:
> if (method.getReturnType() == JAXBElement.class && ret != null) {    
> because you get a NullPointerException if the return type is a JAXBElement and the return value is null.

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