Always catch exceptions

This commit is contained in:
M66B
2018-08-04 14:41:10 +00:00
parent 369c0ede09
commit 1d97c90968
2 changed files with 12 additions and 5 deletions

View File

@@ -541,10 +541,11 @@ public class FragmentCompose extends Fragment {
@Override
public Throwable loadInBackground() {
long id = args.getLong("id");
boolean send = args.getBoolean("send", false);
Log.i(Helper.TAG, "Put load id=" + id + " send=" + send);
try {
long id = args.getLong("id");
boolean send = args.getBoolean("send", false);
Log.i(Helper.TAG, "Put load id=" + id + " send=" + send);
DB db = DB.getInstance(getContext());
DaoMessage message = db.message();
DaoIdentity identity = db.identity();