Merge "Null check in onPostExecute."
This commit is contained in:
committed by
Android (Google) Code Review
commit
641b15b706
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user