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

Commit 6881a5fb authored by Sumedh Sen's avatar Sumedh Sen
Browse files

Check for nullability of SettingsBase

SettingsBase is @Nullable. Check for its nullability before passing it to methods that need a @NonNull SettingsBase

Bug: 405865903
Test: postsubmit
Flag: EXEMPT. Bug fix only
Change-Id: Ifbf8709485942f2595d32886c9d86fa7db37856c
parent f2ff33e8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5484,6 +5484,9 @@ public class ComputerEngine implements Computer {
        // For update or already installed case, leverage the existing visibility rule.
        if (targetAppId != INVALID_UID) {
            final Object targetSetting = mSettings.getSettingBase(targetAppId);
            if (targetSetting == null) {
                return false;
            }
            if (targetSetting instanceof PackageSetting) {
                return !shouldFilterApplication(
                        (PackageSetting) targetSetting, callingUid, userId);