Avoid NPE in system_server in bringDownServiceLocked()

While stoping the service is scheduleUnbindService()
is failing with exception , no need to update the OOM
value of the process as processRecord is already set
to NULL.

Test: Monkey or directed (see bug)
Bug: 136627142
Change-Id: Ic766b91e6dc47b8ff727026863bab2437f9be420
This commit is contained in:
Gopal Krishna Shukla
2019-09-30 15:17:27 +05:30
committed by Jing Ji
parent 4bdfc3c05c
commit 887d808689

View File

@@ -2935,7 +2935,9 @@ public final class ActiveServices {
} catch (Exception e) {
Slog.w(TAG, "Exception when unbinding service "
+ r.shortInstanceName, e);
needOomAdj = false;
serviceProcessGoneLocked(r);
break;
}
}
}