From commits-return-3323-apmail-sis-commits-archive=sis.apache.org@sis.apache.org Thu Dec 26 04:02:07 2013 Return-Path: X-Original-To: apmail-sis-commits-archive@www.apache.org Delivered-To: apmail-sis-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2B5910F73 for ; Thu, 26 Dec 2013 04:02:06 +0000 (UTC) Received: (qmail 26560 invoked by uid 500); 26 Dec 2013 04:02:01 -0000 Delivered-To: apmail-sis-commits-archive@sis.apache.org Received: (qmail 26539 invoked by uid 500); 26 Dec 2013 04:01:59 -0000 Mailing-List: contact commits-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sis-dev@sis.apache.org Delivered-To: mailing list commits@sis.apache.org Received: (qmail 26451 invoked by uid 500); 26 Dec 2013 04:01:51 -0000 Delivered-To: apmail-incubator-sis-commits@incubator.apache.org Received: (qmail 26443 invoked by uid 99); 26 Dec 2013 04:01:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Dec 2013 04:01:50 +0000 Date: Thu, 26 Dec 2013 04:01:50 +0000 (UTC) From: "Martin Desruisseaux (JIRA)" To: sis-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work started] (SIS-157) NullPointerException during unmarshalling of an empty codeListValue attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SIS-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on SIS-157 started by Martin Desruisseaux. > NullPointerException during unmarshalling of an empty codeListValue attribute > ----------------------------------------------------------------------------- > > Key: SIS-157 > URL: https://issues.apache.org/jira/browse/SIS-157 > Project: Spatial Information Systems > Issue Type: Bug > Components: Metadata > Affects Versions: 0.3 > Reporter: Martin Desruisseaux > Assignee: Martin Desruisseaux > Fix For: 0.4 > > > Unmarshalling the following XML fragment: > {code:xml} > > > > > > > > > {code} > cause the following exception on the second code list element (the one with an empty {{codeListValue}} attribute): > {noformat} > Exception in thread "main" java.lang.NullPointerException > at org.apache.sis.util.collection.CodeListSet.add(CodeListSet.java:218) > at org.apache.sis.util.collection.CodeListSet.add(CodeListSet.java:60) > at com.sun.xml.internal.bind.v2.runtime.reflect.Lister$CollectionLister.addToPack(Lister.java:290) > (...snip...) > {noformat} > While an empty {{codeListValue}} attribute is probably invalid, SIS should be robust to minor errors in XML files. SIS should probably emit a warning however. -- This message was sent by Atlassian JIRA (v6.1.5#6160)