Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-524

XFNExtractor: NPE on parsing links with incorrect HREF attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6
    • None
    • None

    Description

      I've got a NPE when parse html with incorrect a.href attribute.

      <a v-bind:href="http://alice.example.com/" rel="friend">

      java.lang.NullPointerException
      	at org.apache.any23.extractor.html.XFNExtractor.extractLink(XFNExtractor.java:89)
      	at org.apache.any23.extractor.html.XFNExtractor.run(XFNExtractor.java:72)
      	at org.apache.any23.extractor.html.XFNExtractor.run(XFNExtractor.java:44)
      	at org.apache.any23.extractor.SingleDocumentExtraction.runExtractor(SingleDocumentExtraction.java:529)
      	at org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:266)
      	at org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:365)
      

       

       

       

      Attachments

        Issue Links

          Activity

            People

              shev Shevchenko Igor
              shev Shevchenko Igor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: