Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8be27550 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when checking whether a rule is implicit" into main

parents f82869ce 6d11da5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2532,7 +2532,7 @@ public class ZenModeConfig implements Parcelable {

    /** Returns whether the rule id corresponds to an implicit rule. */
    public static boolean isImplicitRuleId(@NonNull String ruleId) {
        return ruleId.startsWith(IMPLICIT_RULE_ID_PREFIX);
        return ruleId != null && ruleId.startsWith(IMPLICIT_RULE_ID_PREFIX);
    }

    private static int[] tryParseHourAndMinute(String value) {