mirror of https://github.com/M66B/FairEmail.git
Skip missing revisions
This commit is contained in:
parent
650f7ac85e
commit
aede7acaed
|
@ -4429,7 +4429,11 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
// Restore revision
|
||||
Log.i("Restoring revision=" + draft.revision);
|
||||
body = Helper.readText(draft.getFile(context, draft.revision));
|
||||
File file = draft.getFile(context, draft.revision);
|
||||
if (file.exists())
|
||||
body = Helper.readText(file);
|
||||
else
|
||||
Log.e("Missing revision=" + file);
|
||||
|
||||
dirty = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue