Require installer binder to be not null.
Bug: 282026321 Test: atest PackageInstallerTest Change-Id: I545ef908e98c5191d007e20b5f6567f5f33fce7c Merged-In: I545ef908e98c5191d007e20b5f6567f5f33fce7c
This commit is contained in:
@@ -616,6 +616,7 @@ public class PackageInstaller {
|
||||
/** {@hide} */
|
||||
public PackageInstaller(IPackageInstaller installer,
|
||||
String installerPackageName, String installerAttributionTag, int userId) {
|
||||
Objects.requireNonNull(installer, "installer cannot be null");
|
||||
mInstaller = installer;
|
||||
mInstallerPackageName = installerPackageName;
|
||||
mAttributionTag = installerAttributionTag;
|
||||
|
||||
Reference in New Issue
Block a user