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:
parent
f120a92489
commit
31a8a5b968
@ -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 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user