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

AutomatonTermsEnum constructor throws a NullPointerException with match-all RegExp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.2, 6.3
    • None
    • core/index, core/other
    • None
    • 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)

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: