lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1233) Fix Document.getFieldables and others to never return null
Date Fri, 14 Mar 2008 10:51:24 GMT
Fix Document.getFieldables and others to never return null
----------------------------------------------------------

                 Key: LUCENE-1233
                 URL: https://issues.apache.org/jira/browse/LUCENE-1233
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Index
    Affects Versions: 2.3.1, 2.3, 2.2, 2.1
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 2.4


Document.getFieldables (and other similar methods) returns null if there are no fields matching
the name.  We can avoid NPE in consumers of this API if instead we return an empty array.

Spinoff from http://markmail.org/message/g2nzstmce4cnf3zj

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message