Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14252

NullPointerException in AggregateMetric

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.5
    • metrics
    • None

    Description

      The getMax and getMin methods in AggregateMetric 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?)

      Attachments

        Issue Links

          Activity

            People

              ab Andrzej Bialecki
              andywebb1975 Andy Webb
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h