Merge "Fix NPE in retrieveServiceLocked()"

This commit is contained in:
TreeHugger Robot
2018-12-20 18:52:23 +00:00
committed by Android (Google) Code Review

View File

@@ -2023,7 +2023,7 @@ public final class ActiveServices {
if (!mAm.validateAssociationAllowedLocked(callingPackage, callingUid,
name.getPackageName(), sInfo.applicationInfo.uid)) {
String msg = "association not allowed between packages "
+ callingPackage + " and " + r.packageName;
+ callingPackage + " and " + name.getPackageName();
Slog.w(TAG, "Service lookup failed: " + msg);
return new ServiceLookupResult(null, msg);
}