From: Cédric Walter Date: Wed, 6 Nov 2013 20:04:22 +0000 (+0000) Subject: Bug 55742: fixed hex2dec tests X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28b14db09a3820c084a3a1d7144fd92854e34ae7;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; }