From: Cédric Walter Date: Wed, 6 Nov 2013 20:04:22 +0000 (+0000) Subject: Bug 55742: fixed hex2dec tests X-Git-Tag: REL_3_10_FINAL~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3a49c82bbb0a5b2a78df7564e3ba6c10a40bcdb;p=poi.git Bug 55742: fixed hex2dec tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1539447 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java b/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java index ceb7b654d2..41ec97e0f2 100644 --- a/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java +++ b/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java @@ -25,7 +25,7 @@ public class BaseNumberUtils { public static double convertToDecimal(String value, int base, int maxNumberOfPlaces) throws IllegalArgumentException { - if (value != null && value.length() != 0) { + if (value != null && value.length() == 0) { return 0.0; }