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 2018/05/31 14:06:00 UTC
[jira] [Closed] (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 closed OAK-7513.
---------------------------------
bulk close 1.6.12
> 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.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)