Commit a8afc727 by chongli

增加的字段的get方法中,缺少判空逻辑,造成json解析空指针问题修复

parent 665dc01f
......@@ -106,8 +106,11 @@ public class VoucherShareLogBean implements Serializable {
}
public int getVoucherAmount() {
String[] vIds = voucherIds.split(",");
return vIds.length;
if(voucherIds!=null){
String[] vIds = voucherIds.split(",");
return vIds.length;
}
return 0;
}
public int getSharedVoucherAmount() {
......
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 sign in to comment