[ 
https://issues.apache.org/jira/browse/LUCENE-6719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659288#comment-14659288
 ] 

ASF subversion and git services commented on LUCENE-6719:
---------------------------------------------------------

Commit 1694387 from [~thelabdude] in branch 'dev/branches/lucene_solr_5_3'
[ https://svn.apache.org/r1694387 ]

LUCENE-6719: Fix NumericUtils getMin/Max methods to return null if there are no 
terms for the specified field

> NumericUtils.getMinLong and NumericUtils.getMaxLong have undefined behavior 
> when no docs have value - throw NPE
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-6719
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6719
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Assignee: Timothy Potter
>             Fix For: 5.3, Trunk
>
>         Attachments: LUCENE-6719.patch, LUCENE-6719.patch, LUCENE-6719.patch, 
> LUCENE-6719.patch
>
>
> Tracked down a possible cause of SOLR-7866 to situations where a (numeric) 
> field doesn't have any values in an index and you try to get the min/max.
> javadocs for NumericUtils.getMinLong and NumericUtils.getMaxLong don't 
> actually say what that method will do in this case, throw NPE when it happens



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to