Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-139

NullPointerException during unmarshalling of an empty collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • Metadata, Utilities
    • None

    Description

      Unmarshalling the given XML fragment (Java type of contact is List<ResponsibleParty>):

      <gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd">
        <gmd:contact/>
      </gmd:MD_Metadata>
      

      cause the following exception:

      org.apache.sis.util.NullArgumentException: Argument 'element' can not be null.
      	at org.apache.sis.util.ArgumentChecks.ensureNonNull(ArgumentChecks.java:105)
      	at org.apache.sis.internal.util.CheckedArrayList.ensureValid(CheckedArrayList.java:101)
      	at org.apache.sis.internal.util.CheckedArrayList.add(CheckedArrayList.java:143)
      	at com.sun.xml.internal.bind.v2.runtime.reflect.Lister$CollectionLister.addToPack(Lister.java:290)
      (...snip...)
      

      Attachments

        Issue Links

          Activity

            People

              desruisseaux Martin Desruisseaux
              desruisseaux Martin Desruisseaux
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: