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

Commit aed0537a authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Guard against exception when getting package installer info.

Bug: 28742227
Change-Id: I8742c882ae6b18cb8f51a9da04170358a20a7d48
parent 8c3b5fa3
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -908,8 +908,13 @@ public class InstalledAppDetails extends AppInfoBase
    }

    private void addAppInstallerInfoPref(PreferenceScreen screen) {
        final String installerPackageName =
        String installerPackageName = null;
        try {
            installerPackageName =
                    getContext().getPackageManager().getInstallerPackageName(mPackageName);
        } catch (IllegalArgumentException e) {
            Log.e(TAG, "Exception while retrieving the package installer of " + mPackageName, e);
        }
        if (installerPackageName == null) {
            return;
        }