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

Commit f8a97a03 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Fix NullPointerException in ImsPhoneCallTracker

Fixes a NullPointerException in ImsPhoneCallTracker.getVtDataUsage(). We
must first check that the VideoProvider returned is non-null.

Bug: 29998389
Change-Id: Ia3132a2e8c8f2c5d70528f89cd9af78c857382e5
parent d21e179e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2345,7 +2345,10 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
        // eventually counted when next getVtDataUsage is called.
        if (mState != PhoneConstants.State.IDLE) {
            for (ImsPhoneConnection conn : mConnections) {
                conn.getVideoProvider().onRequestConnectionDataUsage();
                android.telecom.Connection.VideoProvider videoProvider = conn.getVideoProvider();
                if (videoProvider != null) {
                    videoProvider.onRequestConnectionDataUsage();
                }
            }
        }