From 6f6e17229727a974f938205eb078bf4ab754e88a Mon Sep 17 00:00:00 2001 From: elgekko Date: Sun, 28 Jan 2024 22:57:18 +0100 Subject: [PATCH] Project editor save (2 invoices added) bug partially fixed --- .../main/java/hu/user/lis/ui/editor/ProjectEditorModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lis-ui/src/main/java/hu/user/lis/ui/editor/ProjectEditorModel.java b/lis-ui/src/main/java/hu/user/lis/ui/editor/ProjectEditorModel.java index a47a166..f18cc45 100644 --- a/lis-ui/src/main/java/hu/user/lis/ui/editor/ProjectEditorModel.java +++ b/lis-ui/src/main/java/hu/user/lis/ui/editor/ProjectEditorModel.java @@ -145,7 +145,8 @@ public class ProjectEditorModel extends EntityEditorModel { private void updateInvoiceFileChanges(Invoice invoice) { List actions = invoiceDocumentActions.get(invoice.getTechnicalId()); - if (!actions.isEmpty()) { + //TODO nem letezo technikai ID miatt itt null jon, pedig nem johetne. File feltoltes bug lehet belole. + if (actions != null && !actions.isEmpty()) { entityDocumentService.executeActions(invoice.getId(), actions); } } -- 2.54.0