Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5132

Spatial RPT CONTAINS predicate will fail with NPE when there's no indexed data

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.5, 6.0
    • Component/s: modules/spatial
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      If there is no indexed spatial data, the SpatialRecursivePrefixTree strategy will fail with an NPE if the Contains predicate is used. I'm not certain but it might fail even when there is data, when termsEnum reaches the end.

      (bug found via randomized testing & continuous integration)

        Attachments

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dsmiley David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: