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

Commit 6e2bce40 authored by Mark Punzalan's avatar Mark Punzalan
Browse files

Handle exceptions when reading flag values from new storage

Bug: 397708144
Flag: EXEMPT bugfix
Test: presubmit
Change-Id: Ia061cd4536e5e7d7ce998dd4db06a70ef2ce1a05
parent aa6b9b69
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);