Merge "Settings: Fix SparseArray null pointer issue in monkey issues"

This commit is contained in:
Treehugger Robot
2017-07-27 18:16:08 +00:00
committed by Gerrit Code Review

View File

@@ -187,7 +187,11 @@ public abstract class AppStateAppOpsBridge extends AppStateBaseBridge {
* PermissionState, which describes a particular package. * PermissionState, which describes a particular package.
*/ */
private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) {
// Load the packages that have been granted the permission specified in mPermission. // Load the packages that have been granted the permission specified in mPermission.
if (entries == null) {
return;
}
try { try {
for (final UserHandle profile : mProfiles) { for (final UserHandle profile : mProfiles) {
final int profileId = profile.getIdentifier(); final int profileId = profile.getIdentifier();