[CODEC-184] NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings (original) (raw)

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); }

  1. BugReport.java
    10/Apr/14 06:15
    0.3 kB