mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
af89e052fd
commit
fad6280bd6
|
@ -1288,7 +1288,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
os.write(buffer, 0, len);
|
os.write(buffer, 0, len);
|
||||||
|
|
||||||
// Update progress
|
// Update progress
|
||||||
if (attachment.size != null)
|
if (attachment.size != null && attachment.size > 0)
|
||||||
db.attachment().setProgress(attachment.id, (int) (size * 100 / attachment.size));
|
db.attachment().setProgress(attachment.id, (int) (size * 100 / attachment.size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue