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

Commit 411dd507 authored by Jack Yu's avatar Jack Yu Committed by Gerrit Code Review
Browse files

Merge "Fixed NPE when updating score"

parents 1f520cee 99d5ec1d
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);
        }