Prevent crash

pull/164/head
M66B 5 years ago
parent 0c94c973da
commit 126d399e86

@ -182,6 +182,7 @@ public class FragmentAccounts extends FragmentBase {
@Override @Override
protected void onExecuted(Bundle args, EntityFolder drafts) { protected void onExecuted(Bundle args, EntityFolder drafts) {
if (drafts != null) {
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext()); LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
lbm.sendBroadcast( lbm.sendBroadcast(
new Intent(ActivityView.ACTION_VIEW_MESSAGES) new Intent(ActivityView.ACTION_VIEW_MESSAGES)
@ -189,6 +190,7 @@ public class FragmentAccounts extends FragmentBase {
.putExtra("folder", drafts.id) .putExtra("folder", drafts.id)
.putExtra("type", drafts.type)); .putExtra("type", drafts.type));
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {

Loading…
Cancel
Save