Merge "Fix InvalidProtoWireException" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
19943bde4b
@@ -659,7 +659,8 @@ public class ZenModeHelper {
|
||||
mConfig.manualRule.dumpDebug(proto, ZenModeProto.ENABLED_ACTIVE_CONDITIONS);
|
||||
}
|
||||
for (ZenRule rule : mConfig.automaticRules.values()) {
|
||||
if (rule.enabled && rule.condition.state == Condition.STATE_TRUE
|
||||
if (rule.enabled && rule.condition != null
|
||||
&& rule.condition.state == Condition.STATE_TRUE
|
||||
&& !rule.snoozing) {
|
||||
rule.dumpDebug(proto, ZenModeProto.ENABLED_ACTIVE_CONDITIONS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user