Axis
  1. Axis
  2. AXIS-2628

NullPointerException at BeanDeserializer.java:304

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Labels:
      None

      Description

      Caused by: java.lang.NullPointerException at
      org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:304)

      The if block doesn't protect against the dSer variable from being null which will cause a NPE when it tries to call dSer.registerValueTarget:

      if (!((dSer != null) && (dSer instanceof ArrayDeserializer))) {
      collectionIndex++;
      dSer.registerValueTarget(new BeanPropertyTarget(value,
      propDesc, collectionIndex));

      I think the if block should be changed to:

      if ( dSer != null && !(dSer instanceof ArrayDeserializer)) {

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Brian McDonald
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development