You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (JIRA)" <ji...@apache.org> on 2019/03/27 16:37:00 UTC

[jira] [Updated] (LUCENE-8743) lucene/queryparser DOMUtils.getAttributeOrFail(Element,String) never fails

     [ https://issues.apache.org/jira/browse/LUCENE-8743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christine Poerschke updated LUCENE-8743:
----------------------------------------
    Attachment: LUCENE-8742.patch

> 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
>            Priority: Minor
>         Attachments: LUCENE-8742.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org