Merge "Add NPE check before stopping profiler"

This commit is contained in:
Amith Yamasani
2017-01-26 23:04:03 +00:00
committed by Android (Google) Code Review

View File

@@ -5032,7 +5032,9 @@ public final class ActivityThread {
* @hide
*/
public void stopProfiling() {
mProfiler.stopProfiling();
if (mProfiler != null) {
mProfiler.stopProfiling();
}
}
static final void handleDumpHeap(boolean managed, DumpHeapData dhd) {