Christine Poerschke created LUCENE-8743:
-------------------------------------------

             Summary: lucene/queryparser 
DOMUtils.getAttributeOrFail(Element,String) never fails
                 Key: LUCENE-8743
                 URL: https://issues.apache.org/jira/browse/LUCENE-8743
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Christine Poerschke
            Assignee: Christine Poerschke


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to