Skip missing revisions

This commit is contained in:
M66B 2020-09-28 22:24:00 +02:00
parent 650f7ac85e
commit aede7acaed
1 changed files with 5 additions and 1 deletions

View File

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