Project editor save (2 invoices added) bug partially fixed
authorelgekko <vasary@elgekko.net>
Sun, 28 Jan 2024 21:57:18 +0000 (22:57 +0100)
committerelgekko <vasary@elgekko.net>
Sun, 28 Jan 2024 21:57:18 +0000 (22:57 +0100)
lis-ui/src/main/java/hu/user/lis/ui/editor/ProjectEditorModel.java

index a47a166445a7ed1863886fbcf4836905a6b3fb30..f18cc45eefd9600a4ae03aa8491bd40f0c8af67a 100644 (file)
@@ -145,7 +145,8 @@ public class ProjectEditorModel extends EntityEditorModel<Project> {
 
     private void updateInvoiceFileChanges(Invoice invoice) {
         List<EntityDocumentAction> 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);
         }
     }