Check for empty messages

This commit is contained in:
M66B 2019-03-30 08:40:07 +00:00
parent 43b503064a
commit 92210d0454
1 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,8 @@ public class MessageHelper {
Integer getSize() throws MessagingException {
int size = imessage.getSize();
if (size == 0)
throw new MessagingException("Message empty");
return (size < 0 ? null : size);
}