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

NullPointerException at BeanDeserializer.java:304

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4
    • None
    • 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

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

            Dates

              Created:
              Updated: