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

Commit 3b484726 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing crash in TraceHelper when dragging same message across multiple threads

Change-Id: I976a8ae5ac1786d3984b1ff069a8a0c348f48e1c
parent 599752ed
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public class TraceHelper {
    public static void partitionSection(String sectionName, String partition) {
        if (ENABLED) {
            MutableLong time = sUpTimes.get(sectionName);
            if (time.value >= 0) {
            if (time != null && time.value >= 0) {

                if (SYSTEM_TRACE) {
                    Trace.endSection();
@@ -78,7 +78,7 @@ public class TraceHelper {
    public static void endSection(String sectionName, String msg) {
        if (ENABLED) {
            MutableLong time = sUpTimes.get(sectionName);
            if (time.value >= 0) {
            if (time != null && time.value >= 0) {
                if (SYSTEM_TRACE) {
                    Trace.endSection();
                }