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 Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.5, Trunk
    • 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)

        Activity

        David Smiley created issue -
        David Smiley made changes -
        Field Original Value New Value
        Summary Spatial RPT will fail with NPE when there's no indexed data Spatial RPT CONTAINS predicate will fail with NPE when there's no indexed data
        Description If there is no indexed spatial data, the SpatialRecursivePrefixTree strategy will fail with an NPE. This occurs for the 4 main predicates, so there's that many bugs to fix. Shouldn't be hard.
        (bug found via randomized testing & continuous integration)
        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)
        David Smiley made changes -
        Attachment LUCENE-5132.patch [ 12594090 ]
        David Smiley made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Lucene Fields New [ 10121 ] New,Patch Available [ 10121, 10120 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development