Explicit exceptions

This commit is contained in:
M66B
2019-03-14 07:51:22 +00:00
parent 98b84f8927
commit 0c74aa4cfa
3 changed files with 8 additions and 5 deletions

View File

@@ -561,7 +561,7 @@ public class FragmentCompose extends FragmentBase {
DB db = DB.getInstance(context);
EntityMessage draft = db.message().getMessage(id);
if (draft == null)
return null;
throw new FileNotFoundException();
File file = draft.getFile(context);
File refFile = draft.getRefFile(context);