Require installer binder to be not null.

Bug: 282026321
Test: atest PackageInstallerTest
Change-Id: I545ef908e98c5191d007e20b5f6567f5f33fce7c
Merged-In: I545ef908e98c5191d007e20b5f6567f5f33fce7c
This commit is contained in:
Alex Buynytskyy
2023-05-15 17:49:42 +00:00
parent 3238a42fb4
commit 170ea8161c

View File

@@ -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;