am c6afd813: Merge "PackageManager#queryIntentServices breaks its contract." into klp-dev
* commit 'c6afd813ac2ddaa576fc7866479e933627622248': PackageManager#queryIntentServices breaks its contract.
This commit is contained in:
@@ -448,6 +448,10 @@ public final class PrintManagerService extends IPrintManager.Stub {
|
||||
.queryIntentServicesAsUser(intent, PackageManager.GET_SERVICES,
|
||||
getChangingUserId());
|
||||
|
||||
if (installedServices == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final int installedServiceCount = installedServices.size();
|
||||
for (int i = 0; i < installedServiceCount; i++) {
|
||||
ServiceInfo serviceInfo = installedServices.get(i).serviceInfo;
|
||||
|
||||
Reference in New Issue
Block a user