Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7513

Possible NPE in exact size calculation for SolrQueryIndex

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0, 1.6.12, 1.8.4, 1.9.3
    • Component/s: solr
    • Labels:
      None

      Description

      SolrQueryIndex suffers of possible NPE when running exact query calculation method.

       

      @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);
              ...
      }

       

      The problem is the plan being null causes plan.getSortPlan() in FilterQueryParser throw an NPE.

       

        Attachments

          Activity

            People

            • Assignee:
              teofili Tommaso Teofili
              Reporter:
              teofili Tommaso Teofili
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: