IDEMPIERE-1257 Attachment is allowing non-existant files. Accept patch from Richard Morales Herrera.

This commit is contained in:
Heng Sin Low 2013-08-13 23:03:38 +08:00
parent d06505315c
commit f94aef8b98
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ public class WAttachment extends Window implements EventListener<Event>
} // onEvent
private void processUploadMedia(Media media) {
if (media != null)
if (media != null && media.getByteData().length>0)
{
// pdfViewer.setContent(media);
;