Commit 20416fb5 authored by Quxl's avatar Quxl

x

parent 80ff848d
...@@ -14,7 +14,7 @@ import org.dom4j.Element; ...@@ -14,7 +14,7 @@ import org.dom4j.Element;
public class StringUtil { public class StringUtil {
public static Double toDouble(String value) { public static Double toDouble(String value) {
if (value == null || value.equals("")) { if (value == null || value.trim().length() == 0) {
return null; return null;
} else { } else {
return Double.valueOf(value); return Double.valueOf(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment