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

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

Merge "[SettingsProvider] fix NPE introduced by ag/26086453" into main

parents de59969d 688a2848
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -614,8 +614,8 @@ final class SettingsState {
        final Iterator<Map.Entry<String, Setting>> iterator = mSettings.entrySet().iterator();
        int index = prefix.lastIndexOf('/');
        String namespace = index < 0 ? "" : prefix.substring(0, index);
        Map<String, String> trunkFlagMap =
                mNamespaceDefaults.get(namespace);
        Map<String, String> trunkFlagMap = (mNamespaceDefaults == null)
                ? null : mNamespaceDefaults.get(namespace);
        // Delete old keys with the prefix that are not part of the new set.
        // trunk flags will not be configured with restricted propagation
        // trunk flags will be explicitly set, so not removing them here