am ef724232: am c6afd813: Merge "PackageManager#queryIntentServices breaks its contract." into klp-dev
* commit 'ef7242326ad76e7cef6d21b3e83f2510acf8beeb': 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