lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Gandhe (JIRA)" <>
Subject [jira] Updated: (SOLR-1021) NullPointerException in FieldStatsInfo
Date Fri, 06 Mar 2009 23:46:56 GMT


Rohit Gandhe updated SOLR-1021:

    Attachment: SOLR-1021.patch

This patch contains Arie's fix and an additional (related) fix I had to make when extracting
facet info in QueryResponse. As he mentioned earlier, the NPE is thrown when trying to extract
stats and facets from a resultset which contain 0 docs.

> NullPointerException in FieldStatsInfo
> --------------------------------------
>                 Key: SOLR-1021
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.4
>         Environment: Tomcat 6, Windows
>            Reporter: Arie Fishler
>            Priority: Minor
>         Attachments:, SOLR-1021.patch
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message