am 95f140a8: am 135e380f: am 57686525: Merge "Fix NPE in PhoneAccountSettingsFragment" into mnc-dev
* commit '95f140a881dad1130139cd98168ef54f73e608a5':
Fix NPE in PhoneAccountSettingsFragment
diff --git a/src/com/android/phone/settings/PhoneAccountSettingsFragment.java b/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
index 112610b..dd9c050 100644
--- a/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
+++ b/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
@@ -366,7 +366,9 @@
// Add an icon.
Icon icon = account.getIcon();
- accountPreference.setIcon(icon.loadDrawable(getActivity()));
+ if (icon != null) {
+ accountPreference.setIcon(icon.loadDrawable(getActivity()));
+ }
// Add an intent to send the user to the account's settings.
if (intent != null) {