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

Commit 0f94d3ae authored by Wink Saville's avatar Wink Saville
Browse files

Add synchronized to toString.

If toString is called at the same time removeWaitingApn we can
get a ConncurrentModificationException.

Bug: 8727610
Change-Id: I95c2181a1a5abc1a28a9e4eb337b674e49847103
parent 815af95f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ public class ApnContext {
    }

    @Override
    public String toString() {
    public synchronized String toString() {
        // We don't print mDataConnection because its recursive.
        return "{mApnType=" + mApnType + " mState=" + getState() + " mWaitingApns={" + mWaitingApns +
                "} mWaitingApnsPermanentFailureCountDown=" + mWaitingApnsPermanentFailureCountDown +