summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lee <anthonylee@google.com>2015-07-22 07:40:10 -0700
committerAnthony Lee <anthonylee@google.com>2015-07-22 08:10:01 -0700
commite0e5c1ded8037b7be1712891a471b68c6e2576c3 (patch)
tree565cb02723c6e29765d72de94afc72c5137d4758
parent93309717d30d2bc5c5e07af05bc13de8d3c8dc1a (diff)
Catch null Call to avoid NullPointerException.
Bug: 22646355 Change-Id: Iad8f4ed9b29f97b3c6d403b63f9fdf7f3b26f460
-rw-r--r--InCallUI/src/com/android/incallui/VideoCallPresenter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java
index ea0652a6d..f439f6b9d 100644
--- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java
@@ -568,6 +568,9 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
public void onDetailsChanged(Call call, android.telecom.Call.Details details) {
Log.d(this, " onDetailsChanged call=" + call + " details=" + details + " mPrimaryCall="
+ mPrimaryCall);
+ if (call == null) {
+ return;
+ }
// If the details change is not for the currently active call no update is required.
if (!call.equals(mPrimaryCall)) {
Log.d(this," onDetailsChanged: Details not for current active call so returning. ");