From da5dd1e710e9d63b4f66de766de27edd8420b856 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Sat, 26 Oct 2024 22:56:25 +0200 Subject: [PATCH] fixed NPE when creation of invoice document was cancelled by user --- .../jdimension/jlawyer/client/editors/files/InvoiceDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/InvoiceDialog.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/InvoiceDialog.java index 5a980611..4959f960 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/InvoiceDialog.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/InvoiceDialog.java @@ -2551,7 +2551,7 @@ private void cmdCreateInvoiceDocumentActionPerformed(java.awt.event.ActionEvent } ArchiveFileDocumentsBean invoiceDoc = this.caseView.newDocumentDialog(null, currentEntry, senderUser, this.getInvoicePositionsAsTable(this.cmbTableHeadersLanguage.getSelectedItem().toString()), timesheetPosTable, giroCode, null); - if (this.currentEntry != null) { + if (invoiceDoc!=null && this.currentEntry != null) { this.save(); try { JLawyerServiceLocator locator = JLawyerServiceLocator.getInstance(ClientSettings.getInstance().getLookupProperties());