You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Cyrille Artho (JIRA)" <ji...@apache.org> on 2014/04/10 08:16:16 UTC
[jira] [Updated] (CODEC-184) NullPointerException in
DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings
[ 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)