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

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

Merge "Handle exceptions when reading flag values from new storage" into main

parents 1901a217 6e2bce40
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -261,7 +261,12 @@ public class AconfigFlags {
            // Default value is false for when the flag is not found.
            // Note: Unlike with the old storage, with AconfigPackage, we don't have a way to
            // know if the flag is not found or if it's found but the value is false.
            try {
                value = aconfigPackage.getBooleanFlagValue(flagName, false);
            } catch (Exception e) {
                Slog.e(LOG_TAG, "Failed to read Aconfig flag value for " + flagPackageAndName, e);
                return null;
            }
        }
        if (DEBUG) {
            Slog.v(LOG_TAG, "Aconfig flag value for " + flagPackageAndName + " = " + value);