commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyrille Artho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CODEC-184) NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings
Date Thu, 10 Apr 2014 06:16:16 GMT

     [ https://issues.apache.org/jira/browse/CODEC-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cyrille Artho updated CODEC-184:
--------------------------------

    Attachment: BugReport.java

Self-contained JUnit test class (with one test case) to reproduce bug.

> NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings
> ---------------------------------------------------------------------------------------
>
>                 Key: CODEC-184
>                 URL: https://issues.apache.org/jira/browse/CODEC-184
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.9
>         Environment: Mac OS 10.9, Java 6 or 7
>            Reporter: Cyrille Artho
>         Attachments: BugReport.java
>
>
> 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);
>   }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message