Fixed crash

This commit is contained in:
M66B
2019-04-05 11:08:18 +02:00
parent 6b823cf9af
commit f7325563f5
2 changed files with 3 additions and 3 deletions

View File

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