Merge "Fix NPE in AppOpsService." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b19aa9888f
@@ -3744,7 +3744,7 @@ public class AppOpsService extends IAppOpsService.Stub {
|
|||||||
mHandler.sendMessage(PooledLambda.obtainMessage(
|
mHandler.sendMessage(PooledLambda.obtainMessage(
|
||||||
AppOpsService::notifyOpChangedForAllPkgsInUid,
|
AppOpsService::notifyOpChangedForAllPkgsInUid,
|
||||||
this, code, uidState.uid, true, null));
|
this, code, uidState.uid, true, null));
|
||||||
} else {
|
} else if (uidState.pkgOps != null) {
|
||||||
final ArraySet<ModeCallback> callbacks = mOpModeWatchers.get(code);
|
final ArraySet<ModeCallback> callbacks = mOpModeWatchers.get(code);
|
||||||
if (callbacks != null) {
|
if (callbacks != null) {
|
||||||
for (int cbi = callbacks.size() - 1; cbi >= 0; cbi--) {
|
for (int cbi = callbacks.size() - 1; cbi >= 0; cbi--) {
|
||||||
|
|||||||
Reference in New Issue
Block a user