Index: src/main/groovy/com/lemans/builders/CommercialInvoiceBuilder.groovy =================================================================== diff -u -r1164d860e869fa4099c484eb000c300192f58813 -r0872bae51f1b62e5d54fc5c22e1647a6849691bc --- src/main/groovy/com/lemans/builders/CommercialInvoiceBuilder.groovy (.../CommercialInvoiceBuilder.groovy) (revision 1164d860e869fa4099c484eb000c300192f58813) +++ src/main/groovy/com/lemans/builders/CommercialInvoiceBuilder.groovy (.../CommercialInvoiceBuilder.groovy) (revision 0872bae51f1b62e5d54fc5c22e1647a6849691bc) @@ -272,7 +272,7 @@ cell.setHorizontalAlignment(Element.ALIGN_RIGHT) invoiceTable.addCell(cell) //invoiceTable.addCell(new Phrase('PROFORMA', new Font(Font.FontFamily.HELVETICA, 8, Font.NORMAL))) - if (header.groupId) { + if (header?.groupId) { cell = disableBorders(new PdfPCell().with { addElement(new Paragraph("Invoice# / Order#", new Font(Font.FontFamily.HELVETICA, 8, Font.NORMAL))) addElement(new Paragraph("${header?.salesOrderNumber} /", new Font(Font.FontFamily.HELVETICA, 8, Font.NORMAL)))