Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1684439 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Add NPE check before stopping profiler

During crash scenarios, stopProfiling() could be called early.

Change-Id: I6ef78a47e3431dd7c41198ec29d40ebef3928c6a
Fixes: 34744398
Test: N/A
parent 9e77aefe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5032,8 +5032,10 @@ public final class ActivityThread {
     * @hide
     */
    public void stopProfiling() {
        if (mProfiler != null) {
            mProfiler.stopProfiling();
        }
    }

    static final void handleDumpHeap(boolean managed, DumpHeapData dhd) {
        if (managed) {