Closed mariodavid closed 5 years ago
ReportGuiManager has an API to print and download a report with parameters.
ReportGuiManager
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).
NullPointerException
null
cuba-problem-report-npe.zip
Note: Report has to be imported before. Report is located in reports sub directory.
reports
Expected behavior Either the Report should be generated or it should not be possible to run this API variant without passing in a screen
Actual behavior NPE is thrown
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 definesnull
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
Example
cuba-problem-report-npe.zip
Note: Report has to be imported before. Report is located in
reports
sub directory.Expected behavior Either the Report should be generated or it should not be possible to run this API variant without passing in a screen
Actual behavior NPE is thrown