diff options
author | Anthony Lee <anthonylee@google.com> | 2015-07-22 20:24:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-22 20:24:24 +0000 |
commit | 610c654b5b7961d35969dcea7918be4d5a4b5043 (patch) | |
tree | 5707de0a9b6413781d27012149e9e7227b130c51 | |
parent | f998875f666420fc6dc7b65b56773d43ee72de52 (diff) | |
parent | 3c80805def993eef821931970723e2b927fdf552 (diff) | |
download | InCallUI-610c654b5b7961d35969dcea7918be4d5a4b5043.tar.gz |
am 3c80805d: Catch null Call to avoid NullPointerException.
* commit '3c80805def993eef821931970723e2b927fdf552':
Catch null Call to avoid NullPointerException.
-rw-r--r-- | src/com/android/incallui/VideoCallPresenter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/incallui/VideoCallPresenter.java b/src/com/android/incallui/VideoCallPresenter.java index ea0652a6..f439f6b9 100644 --- a/src/com/android/incallui/VideoCallPresenter.java +++ b/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. "); |