|
@@ -1027,8 +1027,11 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
List<List<SubprojectInterimPaymentSummary>> ds = BaseUtils.splitList(v,capacity-1);
|
|
|
List<SubprojectInterimPaymentSummary> tmp = new ArrayList<>();
|
|
|
for(int n=0;n<pageSize;n++){
|
|
|
- List<SubprojectInterimPaymentSummary> currentPageData =ds.get(n);
|
|
|
- tmp.addAll(currentPageData);
|
|
|
+ List<SubprojectInterimPaymentSummary> currentPageData=new ArrayList<>();
|
|
|
+ if(ds.size()>n) {
|
|
|
+ currentPageData = ds.get(n);
|
|
|
+ tmp.addAll(currentPageData);
|
|
|
+ }
|
|
|
int m=1;
|
|
|
if(pageSize-n==1){
|
|
|
m+=extra;
|