Merge "Fix NullPointerException in PhantomProcessList due to race condition" into sc-dev am: 8b872f5c71 am: 000c176097
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404738 Change-Id: I10dd0c0d3f33c586ac366d9896a478752102c86b
This commit is contained in:
@@ -365,6 +365,9 @@ public final class PhantomProcessList {
|
||||
private int onPhantomProcessFdEvent(FileDescriptor fd, int events) {
|
||||
synchronized (mLock) {
|
||||
final PhantomProcessRecord proc = mPhantomProcessesPidFds.get(fd.getInt$());
|
||||
if (proc == null) {
|
||||
return 0;
|
||||
}
|
||||
if ((events & EVENT_INPUT) != 0) {
|
||||
proc.onProcDied(true);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user