lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jane chang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-6001) DrillSideways throws NullPointerException for some searches
Date Thu, 26 Feb 2015 19:13:04 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-6001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

jane chang updated LUCENE-6001:
-------------------------------
    Attachment: LUCENE-6001.patch

this bug was fixed on trunk when reqScorer was modified to no longer be set to null

this patch is against 5.0, where ReqScorer can hit NPE if cost is called after nextDoc

patch includes test and fix to call cost before nextDoc


> DrillSideways throws NullPointerException for some searches
> -----------------------------------------------------------
>
>                 Key: LUCENE-6001
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6001
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>    Affects Versions: 4.10.1
>            Reporter: Dragan Jotanovic
>         Attachments: LUCENE-6001.patch
>
>
> For some DrillSideways searches I get NullPointerException.
> I have tracked the problem to DrillSidewaysScorer class, on line 126 in DrillSidewaysScorer.java:
> long baseQueryCost = baseScorer.cost();
> On some of my index segments, this call throws NullPoinerException. 
> "baseScorer" is instance of ReqExclScorer. 
> In ReqExclScorer.java:
> public long cost() {
>     return reqScorer.cost();
>  }
> throws NullPointerException because reqScorer is null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message