Merge "Frameworks: Fix NPE for agent attach" into oc-mr1-dev
am: 2437f9f10c
Change-Id: I69474f8e14d6abd2657b1fe9c587fef117df38ec
This commit is contained in:
@@ -7005,7 +7005,7 @@ public class ActivityManagerService extends IActivityManager.Stub
|
|||||||
mProfileProc = app;
|
mProfileProc = app;
|
||||||
profilerInfo = (mProfilerInfo != null && mProfilerInfo.profileFile != null) ?
|
profilerInfo = (mProfilerInfo != null && mProfilerInfo.profileFile != null) ?
|
||||||
new ProfilerInfo(mProfilerInfo) : null;
|
new ProfilerInfo(mProfilerInfo) : null;
|
||||||
agent = profilerInfo.agent;
|
agent = mProfilerInfo != null ? mProfilerInfo.agent : null;
|
||||||
} else if (app.instr != null && app.instr.mProfileFile != null) {
|
} else if (app.instr != null && app.instr.mProfileFile != null) {
|
||||||
profilerInfo = new ProfilerInfo(app.instr.mProfileFile, null, 0, false, false,
|
profilerInfo = new ProfilerInfo(app.instr.mProfileFile, null, 0, false, false,
|
||||||
null);
|
null);
|
||||||
|
|||||||
Reference in New Issue
Block a user