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

Commit 37ed8024 authored by Jack Yu's avatar Jack Yu
Browse files

Fixed NPE when updating score

Fixed a race condition when DCT is updating the
network score while the data connection is being
disconnected. Fixed by adding null checking in
data connection.

Test: Telephony sanity tests
Bug: 132448291
Change-Id: Ibe7c59d9b50d8a9230ea72a7e441af9b207632df
parent de030109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2718,7 +2718,7 @@ public class DataConnection extends StateMachine {
    private void updateScore() {
        int oldScore = mScore;
        mScore = calculateScore();
        if (oldScore != mScore) {
        if (oldScore != mScore && mNetworkAgent != null) {
            log("Updating score from " + oldScore + " to " + mScore);
            mNetworkAgent.sendNetworkScore(mScore, this);
        }