fix null pointer exception
This commit is contained in:
parent
7902df76a9
commit
d8bfc6ce39
1 changed files with 16 additions and 10 deletions
|
|
@ -189,6 +189,7 @@ public class OPListController implements Serializable {
|
||||||
|
|
||||||
// finally we set the 'selection' item depending on the $workitemList
|
// finally we set the 'selection' item depending on the $workitemList
|
||||||
// and the payment amount form the 'payment.details'
|
// and the payment amount form the 'payment.details'
|
||||||
|
if (invoiceList!=null) {
|
||||||
List<String> selection = workflowController.getWorkitem().getItemValue("$workitemref");
|
List<String> selection = workflowController.getWorkitem().getItemValue("$workitemref");
|
||||||
List<ItemCollection> paymentList = zahlungseingangService.loadPaymentDetails(workflowController.getWorkitem());
|
List<ItemCollection> paymentList = zahlungseingangService.loadPaymentDetails(workflowController.getWorkitem());
|
||||||
for (ItemCollection invoice : invoiceList) {
|
for (ItemCollection invoice : invoiceList) {
|
||||||
|
|
@ -203,6 +204,11 @@ public class OPListController implements Serializable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// empty list
|
||||||
|
invoiceList = new ArrayList<ItemCollection>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return invoiceList;
|
return invoiceList;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue