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] [Closed] (SIS-139) NullPointerException during unmarshalling of an empty collection
Date Mon, 02 Dec 2013 03:12:36 GMT

     [ https://issues.apache.org/jira/browse/SIS-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux closed SIS-139.
-----------------------------------


> 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
>            Assignee: 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