Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-184

NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.10
    • None
    • Mac OS 10.9, Java 6 or 7

    Description

      isDoubleMetaphoneEqual does not work with empty strings: The following test throws a NullPointerException:

        public void test1() throws Throwable {
          org.apache.commons.codec.language.DoubleMetaphone var0 = new org.apache.commons.codec.language.DoubleMetaphone();
          boolean var3 = var0.isDoubleMetaphoneEqual("", "", false);
        }
      

      Attachments

        1. BugReport.java
          0.3 kB
          Cyrille Artho

        Activity

          People

            ggregory Gary D. Gregory
            Telcontar Cyrille Artho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: