Bug 55742: fixed hex2dec tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1539447 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb811535be
commit
28b14db09a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user