You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2008/02/06 18:33:13 UTC
[jira] Resolved: (CXF-1412) In ClientFaultConverter',
setStackTrace() throws NullPointerException if 'ss' String is null
[ https://issues.apache.org/jira/browse/CXF-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1412.
------------------------------
Resolution: Fixed
> 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.3, 2.0.4
> Environment: Windows XP, JBoss 4.0.5 A
> Reporter: Sandra MartÃn
> Assignee: Daniel Kulp
> Fix For: 2.0.5
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> 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.