Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 6183 invoked from network); 7 Aug 2007 07:38:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 07:38:21 -0000 Received: (qmail 56958 invoked by uid 500); 7 Aug 2007 07:38:19 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 56710 invoked by uid 500); 7 Aug 2007 07:38:19 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 56701 invoked by uid 99); 7 Aug 2007 07:38:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 00:38:19 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 07:38:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 594707141F4 for ; Tue, 7 Aug 2007 00:37:59 -0700 (PDT) Message-ID: <20482313.1186472279363.JavaMail.jira@brutus> Date: Tue, 7 Aug 2007 00:37:59 -0700 (PDT) From: =?utf-8?Q?Andr=C3=A9_Bierwolf_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1053) Calling size method of a ManageableArrayList causes NullPointerException In-Reply-To: <28038527.1186472279091.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1053?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Andr=C3=A9 Bierwolf updated JCR-1053: -------------------------------- Attachment: NTCollectionConverterImpl.diff Fix for isNull method > Calling size method of a ManageableArrayList causes NullPointerException > ------------------------------------------------------------------------ > > Key: JCR-1053 > URL: https://issues.apache.org/jira/browse/JCR-1053 > Project: Jackrabbit > Issue Type: Bug > Components: jcr-mapping > Affects Versions: 1.3 > Reporter: Andr=C3=A9 Bierwolf > Attachments: NTCollectionConverterImpl.diff > > > When using the NTCollectionConverterImpl with proxy=3D"true" a call on th= e size () method of a ManageableArrayList causes a NullPointerException if = there is no underlying List. LazyCollectionLoader doLoad returns null becau= se there is are no children. > The ManageableArrayList is created because the isNull method of the NTCol= lectionConverterImpl class always returns false.=20 > According to the comment line this is done because the getCollectionNodes= always returns a list.=20 > But after the fix for JCR-882 this is not correct anymore. > The attached fix corrects this.=20 > The only question remaining is how to differ between an empty list and a = null-value for the field containing the list. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.