Fixed crash

pull/153/head
M66B 6 years ago
parent 6b823cf9af
commit f7325563f5

@ -100,7 +100,7 @@ public class EntityMessage implements Serializable {
public String headers;
public Boolean raw;
public String subject;
public Integer size;
public Long size;
@NonNull
public Boolean content = false;
public String preview;

@ -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);

Loading…
Cancel
Save