Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2628

NullPointerException at BeanDeserializer.java:304

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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)) {

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: