In  ClientFaultConverter', setStackTrace() throws NullPointerException if 'ss' 
String is null
---------------------------------------------------------------------------------------------

                 Key: CXF-1412
                 URL: https://issues.apache.org/jira/browse/CXF-1412
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0.4, 2.0.3
         Environment: Windows XP, JBoss 4.0.5 A
            Reporter: Sandra Martín
             Fix For: 2.0.5


When CXF is handling exception throwed by a web service, in 'setStackTrace()' 
method of 'apache.cxf.interceptor.ClientFaultConverter' a NullPointerException 
occurs.
This is dued to the condition 'StringUtils.isEmpty(ss)'  is wrong. I consider 
that it would be '!StringUtils.isEmpty(ss)': the 'ss' String must be procesed 
if this is not null o not empty:
        String ss = (String) xu.getValue("//" + Fault.STACKTRACE + "/text()", 
fault.getDetail(),  XPathConstants.STRING);
         ...
        if (!StringUtils.isEmpty(ss)) {   <-------------- THIS CONDITION
              // do something with 'ss'                
        }

Thanks!

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

Reply via email to