mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Check for empty messages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user