mirror of https://github.com/M66B/FairEmail.git
Fixed crash
This commit is contained in:
parent
6b823cf9af
commit
f7325563f5
|
@ -100,7 +100,7 @@ public class EntityMessage implements Serializable {
|
||||||
public String headers;
|
public String headers;
|
||||||
public Boolean raw;
|
public Boolean raw;
|
||||||
public String subject;
|
public String subject;
|
||||||
public Integer size;
|
public Long size;
|
||||||
@NonNull
|
@NonNull
|
||||||
public Boolean content = false;
|
public Boolean content = false;
|
||||||
public String preview;
|
public String preview;
|
||||||
|
|
|
@ -515,8 +515,8 @@ public class MessageHelper {
|
||||||
return subject;
|
return subject;
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer getSize() throws MessagingException {
|
Long getSize() throws MessagingException {
|
||||||
int size = imessage.getSize();
|
long size = imessage.getSize();
|
||||||
if (size == 0)
|
if (size == 0)
|
||||||
throw new MessagingException("Message empty");
|
throw new MessagingException("Message empty");
|
||||||
return (size < 0 ? null : size);
|
return (size < 0 ? null : size);
|
||||||
|
|
Loading…
Reference in New Issue