1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-19 05:46:16 +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);
final String accountName = savedInstanceState.getString("account");
// Impossible... need to handle this later, in case of
if (accountName == null) {
return;
}
// accountName cannot be null, devel error
assert accountName != null;
final AccountManager _accountMgr = AccountManager.get(getBaseContext());
final Account[] myAccountList =