Martin Desruisseaux created SIS-139: ---------------------------------------
Summary: NullPointerException during unmarshalling of an empty collection Key: SIS-139 URL: https://issues.apache.org/jira/browse/SIS-139 Project: Spatial Information Systems Issue Type: Bug Components: Metadata, Utilities Affects Versions: 0.3 Reporter: Martin Desruisseaux Fix For: 0.4 Unmarshalling the given XML fragment (Java type of {{contact}} is {{List<ResponsibleParty>}}): {code:xml} <gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd"> <gmd:contact/> </gmd:MD_Metadata> {code} cause the following exception: {noformat} 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...) {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)