mirror of
https://github.com/apache/poi.git
synced 2025-02-06 10:08:17 +00:00
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
f255ed3a35
commit
a3a49c82bb
@ -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…
x
Reference in New Issue
Block a user