Merge "[Bugfix]fix NullPointException when PackageInfo's verifiers is null "

This commit is contained in:
Song Chun Fan
2022-10-24 14:35:51 +00:00
committed by Gerrit Code Review

View File

@@ -643,7 +643,7 @@ final class VerificationParams extends HandlerParams {
private List<ComponentName> matchVerifiers(PackageInfoLite pkgInfo,
List<ResolveInfo> receivers, final PackageVerificationState verificationState) {
if (pkgInfo.verifiers.length == 0) {
if (pkgInfo.verifiers == null || pkgInfo.verifiers.length == 0) {
return null;
}