Hi, Even if this improvement make sense, I think you broke some compatibility there. But as it was not specified in the javadoc, I don't know how "compatible" it is.
So at least could the javadoc be more precise about what to expect as returned values ? thanks, Nicolas Le vendredi 14 mars 2008, Michael McCandless (JIRA) a écrit : > [ > https://issues.apache.org/jira/browse/LUCENE-1233?page=com.atlassian.jira.p >lugin.system.issuetabpanels:all-tabpanel ] > > Michael McCandless resolved LUCENE-1233. > ---------------------------------------- > > Resolution: Fixed > > Thanks Stefan! > > > 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.1, 2.2, 2.3, 2.3.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 -- Nicolas LALEVÉE ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]