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

Commit 5377bbab authored by Joe Onorato's avatar Joe Onorato Committed by Yao Chen
Browse files

Fix crash in IncidentCompanionService. Null means *don't* do the check.

Test: treehugger
Bug: 123543706
Change-Id: I019dae00e31621d1480dc76b1da0e0f8d1f5bbee
parent 319e7cb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ public class IncidentCompanionService extends SystemService {
                        android.Manifest.permission.DUMP, null);
                getContext().enforceCallingOrSelfPermission(
                        android.Manifest.permission.PACKAGE_USAGE_STATS, null);
                if (pkg == null) {
                if (pkg != null) {
                    enforceCallerIsSameApp(pkg);
                }
            }