|
@@ -47,11 +47,13 @@ public class DataChange {
|
|
|
}else{
|
|
|
String str = String.valueOf(data);
|
|
|
BigDecimal decimal = null;
|
|
|
- try {
|
|
|
- decimal = new BigDecimal(str);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- return new BigDecimal(0);
|
|
|
+ if(!"".equals(str)){
|
|
|
+ try {
|
|
|
+ decimal = new BigDecimal(str);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return new BigDecimal(0);
|
|
|
+ }
|
|
|
}
|
|
|
return decimal;
|
|
|
}
|