You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Garrett Rooney (JIRA)" <ji...@apache.org> on 2006/11/07 17:32:52 UTC

[jira] Resolved: (ABDERA-22) Parser#parse(Reader r) always throws NPE.

     [ 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.<init>(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.<init>(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