mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
34fb50a87d
commit
61e0f7f156
|
@ -1644,6 +1644,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
EntityMessage draft = db.message().getMessage(id);
|
||||
if (draft == null)
|
||||
throw new MessageRemovedException("PGP");
|
||||
if (draft.identity == null)
|
||||
throw new IllegalArgumentException(getString(R.string.title_from_missing));
|
||||
EntityIdentity identity = db.identity().getIdentity(draft.identity);
|
||||
if (identity == null)
|
||||
throw new IllegalArgumentException(getString(R.string.title_from_missing));
|
||||
|
|
Loading…
Reference in New Issue