Export as Excel. Note that only order header is exported.
Environment
None
Attachments
1
Activity
Show:
Jonatas Silvestrini July 8, 2019 at 12:15 PM
Edited
Performing tests occurred an NPE when exporting a report in XLS.
When analyzing, we have seen that in the method createXLS in ReportEngine class, when instantiating the PrintDataExcelExport class, the constructor method requests a Map named childPrintFormatDetails obtained by the m_layout object. However, this object can be null, which causes NPE to try to access a method on a null object. Because there is a handling in the PrintDataExcelExport class if the childPrintFormatDetails is null, we treat it according to the patch sent. What do you think?
Test case:
1 - Open Sales Order 2 - Click on Report 3 - Export to XLS 4 - Nothing happens. NPE is on console
Test Case:
Open Sales Order window
Print a sales order with lines
Export as Excel. Note that only order header is exported.