Guard against NPE when using existing process.

Bug: 11167561
Change-Id: I51ca7daa71504119fb64bc7bc2b7da4e03b13861
This commit is contained in:
Jeff Sharkey
2013-10-10 09:52:48 -07:00
parent d606be2562
commit 2ffa50df6f

View File

@@ -7555,7 +7555,7 @@ public final class ActivityManagerService extends ActivityManagerNative
// Use existing process if already started
ProcessRecord proc = getProcessRecordLocked(
cpi.processName, cpr.appInfo.uid, false);
if (proc != null) {
if (proc != null && proc.thread != null) {
if (DEBUG_PROVIDER) {
Slog.d(TAG, "Installing in existing process " + proc);
}