Make sure to check for a null account before using the account.
This is a common root cause with monkey crashes. Fixes b/5628984 com.google.android.email: java.lang.NullPointerException: Unable to start activity ComponentInfo{com.google.android.email/com.android.email.activity.setup.AccountSetupIncoming}: java.lang.NullPointerExceptionat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955) Change-Id: Ib3ac5c62b72662402c7d5df4e5d895beaf324197
This commit is contained in:
parent
aff36f0535
commit
ceca4751b2
@ -285,6 +285,9 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment {
|
|||||||
private void configureEditor() {
|
private void configureEditor() {
|
||||||
if (mConfigured) return;
|
if (mConfigured) return;
|
||||||
Account account = SetupData.getAccount();
|
Account account = SetupData.getAccount();
|
||||||
|
if (account == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
TextView lastView = mImapPathPrefixView;
|
TextView lastView = mImapPathPrefixView;
|
||||||
mBaseScheme = account.mHostAuthRecv.mProtocol;
|
mBaseScheme = account.mHostAuthRecv.mProtocol;
|
||||||
if (HostAuth.SCHEME_POP3.equals(mBaseScheme)) {
|
if (HostAuth.SCHEME_POP3.equals(mBaseScheme)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user