Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8743

lucene/queryparser DOMUtils.getAttributeOrFail(Element,String) never fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Element.html#getAttribute-java.lang.String- describes the Element.getAttribute return value as "The Attr value as a string, or the empty string if that attribute does not have a specified or default value." but DOMUtils.getAttributeOrFail only checks for null and so it never fails.

      Attachments

        1. LUCENE-8743.patch
          2 kB
          Christine Poerschke

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: