lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayson Minard (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-950) Solr can throw an exception on distributed search due to bad if statement in FacetComponent.java:99
Date Fri, 09 Jan 2009 10:48:59 GMT
Solr can throw an exception on distributed search due to bad if statement in FacetComponent.java:99
---------------------------------------------------------------------------------------------------

                 Key: SOLR-950
                 URL: https://issues.apache.org/jira/browse/SOLR-950
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 1.4
            Reporter: Jayson Minard
            Priority: Critical


When issuing a distributed request, the aggregator node caused an exception due to the following
code at line 99 in FacetComponent.java

{code}
 if (refList == null | refList.size()==0) continue;
{code}

(!) note the single pipe for a bitwise OR rather than boolean OR

Change code to:

{code}
if (refList == null || refList.size() == 0) continue;
{code}



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


Mime
View raw message