From d6c0da9a9345f3e8ba4c81d5e0eadf9496c3749a Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 8 Jul 2019 21:04:55 +0800 Subject: [PATCH] IDEMPIERE-3995 Excel Export - Include Embedded Print Format. Fix NPE. --- org.adempiere.base/src/org/compiere/print/ReportEngine.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/print/ReportEngine.java b/org.adempiere.base/src/org/compiere/print/ReportEngine.java index 0685841841..73f7cc0f6f 100644 --- a/org.adempiere.base/src/org/compiere/print/ReportEngine.java +++ b/org.adempiere.base/src/org/compiere/print/ReportEngine.java @@ -1470,7 +1470,8 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) throws Exception { Boolean [] colSuppressRepeats = m_layout == null || m_layout.colSuppressRepeats == null? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats; - PrintDataExcelExporter exp = new PrintDataExcelExporter(getPrintData(), getPrintFormat(), m_layout.getChildPrintFormatDetails(), colSuppressRepeats, m_query); + Map childFormats = m_layout != null ? m_layout.getChildPrintFormatDetails() : null; + PrintDataExcelExporter exp = new PrintDataExcelExporter(getPrintData(), getPrintFormat(), childFormats, colSuppressRepeats, m_query); exp.export(outFile, language); }