From 47e5f0120642f4fefeb0fc14d01e980f7354f279 Mon Sep 17 00:00:00 2001 From: Jose Leite <122051639+joseleite550@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:45:42 -0300 Subject: [PATCH] IDEMPIERE-5791 - Fix Error when changing print format to CSV (#1925) * IDEMPIERE-5791 - Fix Error when changing print format to CSV * IDEMPIERE-5791 - Fix Error when changing print format to CSV * IDEMPIERE-5791 - Fix Error when changing print format to CSV --- .../WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java index d514e7ae40..f8bff824d8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java @@ -901,6 +901,8 @@ public class ZkReportViewer extends Window implements EventListener, IRep } private void onPreviewReport() { + if(media == null) + return; try { mediaVersion++; String url = Utils.getDynamicMediaURI(this, mediaVersion, media.getName(), media.getFormat());