From cd1e2072008da7467c852d6043fb9f69ff5bc42b Mon Sep 17 00:00:00 2001 From: Andrew Stadler Date: Fri, 18 Sep 2009 15:13:12 -0700 Subject: [PATCH] Fix NPE when entering account settings. --- src/com/android/email/activity/setup/AccountSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/activity/setup/AccountSettings.java b/src/com/android/email/activity/setup/AccountSettings.java index 26481ef9b..056934a9a 100644 --- a/src/com/android/email/activity/setup/AccountSettings.java +++ b/src/com/android/email/activity/setup/AccountSettings.java @@ -94,7 +94,7 @@ public class AccountSettings extends PreferenceActivity { super.onCreate(savedInstanceState); Intent i = getIntent(); - if (i.getAction().equals(ACTION_ACCOUNT_MANAGER_ENTRY)) { + if (ACTION_ACCOUNT_MANAGER_ENTRY.equals(i.getAction())) { // This case occurs if we're changing account settings from Settings -> Accounts setAccountIdFromAccountManagerIntent(); } else {