fix null pointer exception

This commit is contained in:
Ralph Soika 2023-06-13 11:01:33 +02:00
parent 7902df76a9
commit d8bfc6ce39

View file

@ -189,6 +189,7 @@ public class OPListController implements Serializable {
// finally we set the 'selection' item depending on the $workitemList
// and the payment amount form the 'payment.details'
if (invoiceList!=null) {
List<String> selection = workflowController.getWorkitem().getItemValue("$workitemref");
List<ItemCollection> paymentList = zahlungseingangService.loadPaymentDetails(workflowController.getWorkitem());
for (ItemCollection invoice : invoiceList) {
@ -203,6 +204,11 @@ public class OPListController implements Serializable {
}
}
}
} else {
// empty list
invoiceList = new ArrayList<ItemCollection>();
}
return invoiceList;
}