mirror of https://github.com/M66B/FairEmail.git
Check for empty messages
This commit is contained in:
parent
43b503064a
commit
92210d0454
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue