Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 39406 invoked from network); 7 Nov 2006 16:33:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 16:33:13 -0000 Received: (qmail 1834 invoked by uid 500); 7 Nov 2006 16:33:24 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 1811 invoked by uid 500); 7 Nov 2006 16:33:24 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 1802 invoked by uid 99); 7 Nov 2006 16:33:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 08:33:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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 Nov 2006 08:33:12 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 84E927142F7 for ; Tue, 7 Nov 2006 08:32:52 -0800 (PST) Message-ID: <9902366.1162917172541.JavaMail.jira@brutus> Date: Tue, 7 Nov 2006 08:32:52 -0800 (PST) From: "Garrett Rooney (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Resolved: (ABDERA-22) Parser#parse(Reader r) always throws NPE. In-Reply-To: <17117280.1162819117041.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/ABDERA-22?page=all ] Garrett Rooney resolved ABDERA-22. ---------------------------------- Resolution: Fixed Fix committed in r472152. > Parser#parse(Reader r) always throws NPE. > ----------------------------------------- > > Key: ABDERA-22 > URL: http://issues.apache.org/jira/browse/ABDERA-22 > Project: Abdera > Issue Type: Bug > Reporter: Ugo Cei > > Calling the Parser#parse(Reader r) method without passing in a 'base' argument, like in Parser#parse(Reader r, String base) always throws a NullPointerException: > Caused by: java.lang.NullPointerException > at java.util.regex.Matcher.getTextLength(Matcher.java:1127) > at java.util.regex.Matcher.reset(Matcher.java:284) > at java.util.regex.Matcher.(Matcher.java:205) > at java.util.regex.Pattern.matcher(Pattern.java:879) > at org.apache.abdera.util.iri.IRI$Parser.parse(IRI.java:730) > at org.apache.abdera.util.iri.IRI.parse(IRI.java:661) > at org.apache.abdera.util.iri.IRI.(IRI.java:72) > at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:131) > ... 20 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira