[ 
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)

Reply via email to