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

AutomatonTermsEnum constructor throws a NullPointerException with match-all RegExp

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2, 6.3
    • Fix Version/s: None
    • Component/s: core/index, core/other
    • Labels:
      None
    • Environment:

      MacOS
      java version "1.8.0_77"
      Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
      Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

    • Lucene Fields:
      New

      Description

      When constructing a AutomatonTermsEnum using a CompiledAutomaton with a "silly" RegExp ("..") a NullPointerException is thrown. Test case attached.

        Attachments

        1. RegExpNPE.java
          0.8 kB
          Tom Mortimer
        2. LUCENE-7646.patch
          2 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              TomMortimer Tom Mortimer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: