Skip to content
Snippets Groups Projects
Commit e6e6018d authored by Adrien Béraud's avatar Adrien Béraud
Browse files

requests: check for null

Change-Id: Icd6c7237cbfb3812c73e411a8187257211d39c4b
parent 670c0bfd
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ import cx.ring.viewholders.SmartListViewHolder;
public class ContactRequestsFragment extends BaseSupportFragment<ContactRequestsPresenter> implements ContactRequestsView,
SmartListViewHolder.SmartListListeners {
static final String TAG = ContactRequestsFragment.class.getSimpleName();
private static final String TAG = ContactRequestsFragment.class.getSimpleName();
public static final String ACCOUNT_ID = TAG + "accountID";
@BindView(R.id.requests_list)
......@@ -84,7 +84,9 @@ public class ContactRequestsFragment extends BaseSupportFragment<ContactRequests
if (bundle != null && bundle.containsKey(ACCOUNT_ID)) {
String accountId = bundle.getString(ACCOUNT_ID);
presenter.updateAccount(accountId);
getArguments().putString(ACCOUNT_ID, accountId);
Bundle arguments = getArguments();
if (arguments != null)
arguments.putString(ACCOUNT_ID, accountId);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment