Solr
  1. Solr
  2. SOLR-1021

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development