Uploaded image for project: 'Abdera'
  1. Abdera
  2. ABDERA-22

Parser#parse(Reader r) always throws NPE.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: