diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java index aaa992178e..1581a1311d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java @@ -555,7 +555,7 @@ public class WAttachment extends Window implements EventListener } // onEvent private void processUploadMedia(Media media) { - if (media != null) + if (media != null && media.getByteData().length>0) { // pdfViewer.setContent(media); ;