Null check in onPostExecute.

Change-Id: I8bc8c0b062583b4b9c54152c516f160df4f645e7
This commit is contained in:
Julia Reynolds
2015-11-04 10:11:41 -05:00
parent 514b81d233
commit bebd2a482e

View File

@@ -331,9 +331,11 @@ public class ZenModeAutomationSettings extends ZenModeSettingsBase {
protected void onPostExecute(Drawable icon) { protected void onPostExecute(Drawable icon) {
if (icon != null) { if (icon != null) {
final Preference pref = prefReference.get(); final Preference pref = prefReference.get();
if (pref != null) {
pref.setIcon(icon); pref.setIcon(icon);
} }
} }
} }
}
} }