cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5404) NPE in AtomPojoProvider when no content (or content is empty)
Date Wed, 20 Nov 2013 12:23:35 GMT

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

Sergey Beryozkin resolved CXF-5404.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.9
                   3.0.0-milestone1
         Assignee: Sergey Beryozkin

thanks for providing a test

> NPE in AtomPojoProvider when no content (or content is empty)
> -------------------------------------------------------------
>
>                 Key: CXF-5404
>                 URL: https://issues.apache.org/jira/browse/CXF-5404
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.7
>            Reporter: Dale Peakall
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.0-milestone1, 2.7.9
>
>
> When using the AtomPojoProvider with JAX-RS - the library bombs with an NPE (embedded
in a ClientErrorException) if using JAXB annotated content objects - but no content is provided
in the entry.  It also NPE's if the content element is present but contains no XML (although
this is a slightly dubious Atom document at this point).
> Returning "null" would be a much better result in this case.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message