Merge "Check the null pointer in ProcStats" into tm-qpr-dev am: 52ef129d27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20040059 Change-Id: Ic69c4987f96c0085834105010d621901a24dd9f1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -473,7 +473,10 @@ public final class ProcessState {
|
||||
}
|
||||
}
|
||||
mCurCombinedState = state;
|
||||
mStats.mUidStates.get(mUid).updateCombinedState(state, now);
|
||||
final UidState uidState = mStats.mUidStates.get(mUid);
|
||||
if (uidState != null) {
|
||||
uidState.updateCombinedState(state, now);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user