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] [Resolved] (CODEC-184) NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings
Date Thu, 10 Apr 2014 13:53:17 GMT

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

Gary Gregory resolved CODEC-184.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.10
         Assignee: Gary Gregory

Thank you for the bug report.
{noformat}
commit -m "<action dev="ggregory" type="add" issue="CODEC-184" due-to="Cyrille Artho">NullPointerException
in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings</action>" C:/vcs/svn/apache/commons/trunks-proper/codec/src/test/java/org/apache/commons/codec/language/DoubleMetaphoneTest.java
C:/vcs/svn/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/binary/CharSequenceUtils.java
C:/vcs/svn/apache/commons/trunks-proper/codec/src/changes/changes.xml C:/vcs/svn/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/language/DoubleMetaphone.java
C:/vcs/svn/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/binary/StringUtils.java
    Sending        C:/vcs/svn/apache/commons/trunks-proper/codec/src/changes/changes.xml
    Adding         C:/vcs/svn/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/binary/CharSequenceUtils.java
    Sending        C:/vcs/svn/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/binary/StringUtils.java
    Sending        C:/vcs/svn/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/language/DoubleMetaphone.java
    Sending        C:/vcs/svn/apache/commons/trunks-proper/codec/src/test/java/org/apache/commons/codec/language/DoubleMetaphoneTest.java
    Transmitting file data ...
    Committed revision 1586300.
{noformat}

> 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
>            Assignee: Gary Gregory
>             Fix For: 1.10
>
>         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