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
This commit is contained in:
Jose Leite 2023-07-10 22:45:42 -03:00 committed by GitHub
parent beffc74bc0
commit 47e5f01206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -901,6 +901,8 @@ public class ZkReportViewer extends Window implements EventListener<Event>, IRep
} }
private void onPreviewReport() { private void onPreviewReport() {
if(media == null)
return;
try { try {
mediaVersion++; mediaVersion++;
String url = Utils.getDynamicMediaURI(this, mediaVersion, media.getName(), media.getFormat()); String url = Utils.getDynamicMediaURI(this, mediaVersion, media.getName(), media.getFormat());