cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-1412) In ClientFaultConverter', setStackTrace() throws NullPointerException if 'ss' String is null
Date Wed, 06 Feb 2008 17:33:13 GMT

     [ 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.


Mime
View raw message