Excel Export - Include Embedded Print Format

Description

Test Case:

  1. Open Sales Order window

  2. Print a sales order with lines

  3. 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

 

Carlos Ruiz June 26, 2019 at 2:52 PM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created June 26, 2019 at 2:36 AM
Updated September 2, 2019 at 9:08 AM
Resolved July 8, 2019 at 1:06 PM