IDEMPIERE-1257 Attachment is allowing non-existant files. Accept patch from Richard Morales Herrera.
This commit is contained in:
parent
d06505315c
commit
f94aef8b98
|
@ -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);
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue