Abdera
  1. Abdera
  2. ABDERA-22

Parser#parse(Reader r) always throws NPE.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      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

        Activity

        Hide
        Garrett Rooney added a comment -

        Fix committed in r472152.

        Show
        Garrett Rooney added a comment - Fix committed in r472152.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ugo Cei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development