cuba-platform / reports

CUBA Reports Addon
https://www.cuba-platform.com/
Apache License 2.0
9 stars 4 forks source link

ReportGuiManager printReport(report, params) throws NPE #158

Closed mariodavid closed 5 years ago

mariodavid commented 5 years ago

Environment

Description of the bug or enhancement

ReportGuiManager has an API to print and download a report with parameters.

See: https://github.com/cuba-platform/reports/blob/master/modules/gui/src/com/haulmont/reports/gui/ReportGuiManager.java#L175

This API variant is broken in 7.0.1. When executing it a NullPointerException is thrown in UiControllerUtils. It seems there is a screen needed, but the API variant defines null as the screen (see: https://github.com/cuba-platform/reports/blob/master/modules/gui/src/com/haulmont/reports/gui/ReportGuiManager.java#L176).

Minimal reproducible example

problem-overview

Example

cuba-problem-report-npe.zip

Note: Report has to be imported before. Report is located in reports sub directory.