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

Commit d54fdfe7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE that can happen when compaction is disabled and dumpsys is called" into main

parents 89281c61 5f06d93a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -639,7 +639,10 @@ public class CachedAppOptimizer {
                    + Arrays.toString(mProcStateThrottle.toArray(new Integer[0])));
        }

        if (mCompactStatsManager != null) {
            // Compaction stats manager only exists when compaction is enabled.
            mCompactStatsManager.dump(pw);
        }

        synchronized (mProcLock) {
            if (!mPendingCompactionProcesses.isEmpty()) {