summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java
index c850a25672d2..63d289103930 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java
@@ -242,9 +242,9 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
return Ranking.IMPORTANCE_UNSPECIFIED;
}
} else {
- if (mBlock.isChecked()) {
+ if (mBlock != null && mBlock.isChecked()) {
return Ranking.IMPORTANCE_NONE;
- } else if (mSilent.isChecked()) {
+ } else if (mSilent != null && mSilent.isChecked()) {
return Ranking.IMPORTANCE_LOW;
} else {
return Ranking.IMPORTANCE_UNSPECIFIED;