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

Commit d02a6d88 authored by Wen Zhang's avatar Wen Zhang
Browse files

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

PackageInfo's verifiers will be null sometime when cancel install app, it will casue system server NPE.

Bug: 254754001
Test: MTBF

Change-Id: I1f06b4ea9610eb268cb3addcb2b44ac95520e140
parent e85f2710
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }