diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java index 441a904..7aaffc4 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java @@ -441,7 +441,7 @@ public class ProjectLibManage { } private BigDecimal computeAmount(BigDecimal cuurentAmount,List prfs) { - BigDecimal res = cuurentAmount; + BigDecimal res = Objects.isNull(cuurentAmount) ? BigDecimal.ZERO : cuurentAmount; for(ProjectRenewalFundDeclaration prf : prfs){ res = res.add(prf.getAnnualPaymentAmount()); }