summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2022-06-15 05:45:24 -0700
committerLinux Build Service Account <lnxbuild@localhost>2022-06-15 05:45:24 -0700
commit68b9640cbcb7b95c900ecafd3cdb20c629c87347 (patch)
treefbff498e82d504096f984e0db4e69fdf6ba4b8f6
parenta84b951bb7b1b736bdbcceabab0fb9fc3b8d3191 (diff)
parentd452387c1fcebfe22592829313b73e2a9fa97eea (diff)
Merge d452387c1fcebfe22592829313b73e2a9fa97eea on remote branch
Change-Id: I258e2cea31e6e4eb6e97e4294597e86805d33bb7
-rw-r--r--src/com/android/services/telephony/TelephonyConnection.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/services/telephony/TelephonyConnection.java b/src/com/android/services/telephony/TelephonyConnection.java
index 27db7ab97f..e14c0c0105 100644
--- a/src/com/android/services/telephony/TelephonyConnection.java
+++ b/src/com/android/services/telephony/TelephonyConnection.java
@@ -2012,8 +2012,10 @@ abstract class TelephonyConnection extends Connection implements Holdable,
for (com.android.internal.telephony.Connection conn : connections) {
if (conn instanceof ImsPhoneConnection) {
ImsCall bgCall = ((ImsPhoneConnection)conn).getImsCall();
- isCurrentBgVideoCall |= bgCall.isVideoCall();
- wasBgVideoCall |= bgCall.wasVideoCall();
+ if (bgCall != null) {
+ isCurrentBgVideoCall |= bgCall.isVideoCall();
+ wasBgVideoCall |= bgCall.wasVideoCall();
+ }
}
}