Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5404

NPE in AtomPojoProvider when no content (or content is empty)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 3.0.0-milestone1, 2.7.9
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              dale.peakall Dale Peakall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: