Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1005

DoubleMetaphone Filter Produces NullpointerException on zero-length token

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • None
    • Schema and Analysis
    • None
    • jdk 1.6.10, tomcat 6.x

    Description

      If any token given to the DoubleMetaphoneFilter is empty (Token exists, 0 length), then the encoder will return null instead of a metaphone encoded string. The current code assumes that there will always be a valid object returned.

      Proposed solution: Make sure 0-length tokens are skipped at the top branch where the code checks whether or not we have a Token object at all.

      Attachments

        1. solr-1005.zip
          0.4 kB
          Michael Henson

        Activity

          People

            otis Otis Gospodnetic
            mhenson Michael Henson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: