Null check in onPostExecute.
Change-Id: I8bc8c0b062583b4b9c54152c516f160df4f645e7
This commit is contained in:
@@ -331,7 +331,9 @@ public class ZenModeAutomationSettings extends ZenModeSettingsBase {
|
||||
protected void onPostExecute(Drawable icon) {
|
||||
if (icon != null) {
|
||||
final Preference pref = prefReference.get();
|
||||
pref.setIcon(icon);
|
||||
if (pref != null) {
|
||||
pref.setIcon(icon);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user