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

ASF subversion and git services commented on SOLR-14252:
--------------------------------------------------------

Commit ad9b2d2e1994f6cc868444eed9c3438408ef6078 in lucene-solr's branch 
refs/heads/branch_8x from Andrzej Bialecki
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=ad9b2d2 ]

SOLR-14252: NullPointerException in AggregateMetric.


> NullPointerException in AggregateMetric
> ---------------------------------------
>
>                 Key: SOLR-14252
>                 URL: https://issues.apache.org/jira/browse/SOLR-14252
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>            Reporter: Andy Webb
>            Assignee: Andrzej Bialecki
>            Priority: Major
>             Fix For: 8.5
>
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> The {{getMax}} and {{getMin}} methods in 
> [AggregateMetric|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/metrics/AggregateMetric.java]
>  can throw an NPE if non-{{Number}} values are present in {{values}}, when it 
> tries to cast a {{null}} {{Double}} to a {{double}}.
> This PR prevents the NPE occurring: 
> [https://github.com/apache/lucene-solr/pull/1265]
> (We've also noticed an error in the documentation - see 
> https://github.com/apache/lucene-solr/commit/109d3411cd3866d83273187170dbc5b8b3211d20
>  - this could be pulled out into a separate ticket if necessary?)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to