XStream
  1. XStream
  2. XSTR-475

Null Pointer Exception when using Annotations

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Annotations
    • Labels:
      None
    • JDK version and platform:
      Sun 1.6.0_04 on Linux

      Description

      When using Annotations to structure the XML output, I have run across a "NullPointerException"

      Stack information:
      java.lang.NullPointerException
      at com.thoughtworks.xstream.annotations.Annotations.getFieldParameterizedType(Annotations.java:232)
      at com.thoughtworks.xstream.annotations.Annotations.configureClass(Annotations.java:161)
      at com.thoughtworks.xstream.annotations.Annotations.configureAliases(Annotations.java:49)

      Upon digging a bit into the source, it appears there should at least be a null check in the "Annotations.getFieldParameterizedType(Annotations.java:232)" method, with a more descriptive error (if it IS an error) relayed to the user.

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Michael Hess
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: