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.4.1
Environment: windows
Reporter: Ben Reif
Priority: Minor
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.