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

Possible NPE in exact size calculation for SolrQueryIndex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.6.12, 1.8.4, 1.9.3
    • solr
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: