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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: clients - java
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: