Merge "Null check in onPostExecute."
This commit is contained in:
committed by
Android (Google) Code Review
commit
641b15b706
@@ -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