]> source.dussan.org Git - poi.git/commitdiff
Bug 55742: fixed hex2dec tests
authorCédric Walter <cedricwalter@apache.org>
Wed, 6 Nov 2013 20:04:22 +0000 (20:04 +0000)
committerCédric Walter <cedricwalter@apache.org>
Wed, 6 Nov 2013 20:04:22 +0000 (20:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1539447 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java

index ceb7b654d2a7604eda42afa66f1f1ad5211fd662..41ec97e0f26bcf6c498eee9bcd6d49361a572d13 100644 (file)
@@ -25,7 +25,7 @@ public class BaseNumberUtils {
 \r
 \r
     public static double convertToDecimal(String value, int base, int maxNumberOfPlaces) throws IllegalArgumentException {\r
-        if (value != null && value.length() != 0) {\r
+        if (value != null && value.length() == 0) {\r
             return 0.0;\r
         }\r
 \r