Merge "Guard against NPE when using existing process." into klp-dev

This commit is contained in:
Jeff Sharkey
2013-10-10 17:17:14 +00:00
committed by Android (Google) Code Review

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);
}