1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-19 13:56:28 +00:00

Use an assert on ContactListActivity::onCreate, when accountName is null

This commit is contained in:
Loic Blot 2015-05-15 11:58:30 +02:00
parent f120a92489
commit 31a8a5b968

View File

@ -13,10 +13,9 @@ public class ContactListActivity extends ListActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
final String accountName = savedInstanceState.getString("account"); final String accountName = savedInstanceState.getString("account");
// Impossible... need to handle this later, in case of
if (accountName == null) { // accountName cannot be null, devel error
return; assert accountName != null;
}
final AccountManager _accountMgr = AccountManager.get(getBaseContext()); final AccountManager _accountMgr = AccountManager.get(getBaseContext());
final Account[] myAccountList = final Account[] myAccountList =