IDEMPIERE-3995 Excel Export - Include Embedded Print Format. Fix NPE.

This commit is contained in:
Heng Sin Low 2019-07-08 21:04:55 +08:00
parent 25637cc743
commit d6c0da9a93
1 changed files with 2 additions and 1 deletions

View File

@ -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<MPrintFormatItem, PrintData> childFormats = m_layout != null ? m_layout.getChildPrintFormatDetails() : null;
PrintDataExcelExporter exp = new PrintDataExcelExporter(getPrintData(), getPrintFormat(), childFormats, colSuppressRepeats, m_query);
exp.export(outFile, language);
}