You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2019/01/09 16:14:03 UTC

[jira] [Updated] (OAK-7513) Possible NPE in exact size calculation for SolrQueryIndex

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

Davide Giannella updated OAK-7513:
----------------------------------
    Fix Version/s: 1.10

Adding 1.10 version before 1.10.0 release

> Possible NPE in exact size calculation for SolrQueryIndex
> ---------------------------------------------------------
>
>                 Key: OAK-7513
>                 URL: https://issues.apache.org/jira/browse/OAK-7513
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: solr
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>            Priority: Major
>             Fix For: 1.10, 1.6.12, 1.8.4, 1.9.3
>
>
> SolrQueryIndex suffers of possible NPE when running exact query calculation method.
>  
> {code:java}
> @Override
> public long getSize(SizePrecision precision, long max) {
>     long estimate = -1;
>     switch (precision) {
>         case EXACT:
>             // query solr
>             SolrQuery countQuery = FilterQueryParser.getQuery(plan.getFilter(), null, this.configuration);
>         ...
> }{code}
>  
> The problem is the _plan_ being null causes _plan.getSortPlan()_ in FilterQueryParser throw an NPE.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)