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

Commit d12ae130 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "profcollect: Guard binder calls with null checks" into main

parents 2b66ca61 d470e927
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -354,6 +354,9 @@ public final class ProfcollectForwardingService extends SystemService {

    private static void createAndUploadReport(ProfcollectForwardingService pfs) {
        BackgroundThread.get().getThreadHandler().post(() -> {
            if (pfs.mIProfcollect == null) {
                return;
            }
            String reportName;
            try {
                reportName = pfs.mIProfcollect.report(pfs.mUsageSetting) + ".zip";
@@ -401,6 +404,9 @@ public final class ProfcollectForwardingService extends SystemService {
                final int traceDuration = 5000;
                final String traceTag = "camera";
                BackgroundThread.get().getThreadHandler().post(() -> {
                    if (mIProfcollect == null) {
                        return;
                    }
                    try {
                        mIProfcollect.trace_process(traceTag, "android.hardware.camera.provider",
                                traceDuration);