mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Prevent crash
This commit is contained in:
@@ -1288,7 +1288,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
os.write(buffer, 0, len);
|
||||
|
||||
// Update progress
|
||||
if (attachment.size != null)
|
||||
if (attachment.size != null && attachment.size > 0)
|
||||
db.attachment().setProgress(attachment.id, (int) (size * 100 / attachment.size));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user