IDEMPIERE-5854 Error when trying to call ServerReportCtl.runJasperProcess with a process info without a transaction name (#2009)

This commit is contained in:
Carlos Ruiz 2023-09-15 14:21:34 +02:00 committed by GitHub
parent 209663d32a
commit d665c2b051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ public class ServerReportCtl {
jasperProcessInfo.setParameter(jasperPrintParams.toArray(new ProcessInfoParameter[]{}));
ServerProcessCtl.process(jasperProcessInfo, pi != null ? Trx.get(pi.getTransactionName(),false) : null);
ServerProcessCtl.process(jasperProcessInfo, pi != null && pi.getTransactionName() != null ? Trx.get(pi.getTransactionName(),false) : null);
boolean result = !jasperProcessInfo.isError();
if (result && pi != null && pi.isBatch())