commons-issues mailing list archives

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

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

Gary Gregory updated CODEC-184:
-------------------------------

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

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

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

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


> 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}}:
> {code:java}
>   public void test1() throws Throwable {
>     org.apache.commons.codec.language.DoubleMetaphone var0 = new org.apache.commons.codec.language.DoubleMetaphone();
>     boolean var3 = var0.isDoubleMetaphoneEqual("", "", false);
>   }
> {code}



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

Mime
View raw message