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

NullPointerException(s) in SolrJ when using stats and result set is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.4
    • clients - java
    • None
    • Tomcat 6, Windows

    Description

      A NullPointerException is thrown at line 51 of class FieldStatsInfo since the returned stats information for the fname (ctor variable) is null and not checked for being so.

      Seems like this occurs when the search returns with no results but there were some setGetFieldStatistics defined for some fields.

      Attachments

        1. SOLR-1021.patch
          1 kB
          Rohit Gandhe
        2. QueryResponse.java
          11 kB
          Arie Fishler

        Activity

          People

            noble.paul Noble Paul
            afishler Arie Fishler
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: