sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-139) NullPointerException during unmarshalling of an empty collection
Date Tue, 01 Oct 2013 11:17:24 GMT
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)

Mime
View raw message