diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-05-22 01:02:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-22 01:02:58 +0000 |
commit | 4950fd587f2588e7958a84c5fcd814058bd2e1a3 (patch) | |
tree | 7fad0655d651a9d8e0b217344d750f130a33d750 /java | |
parent | a4b75b5adbe4c26c83bd51cbbd89b1d029be1c18 (diff) | |
parent | 134d6b1117b086e6493e1209e26215deabbb3a72 (diff) |
Merge "Handle null VideoCall"
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/incallui/videotech/ims/ImsVideoTech.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/incallui/videotech/ims/ImsVideoTech.java b/java/com/android/incallui/videotech/ims/ImsVideoTech.java index c4c177f39..d35c5ef61 100644 --- a/java/com/android/incallui/videotech/ims/ImsVideoTech.java +++ b/java/com/android/incallui/videotech/ims/ImsVideoTech.java @@ -308,6 +308,10 @@ public class ImsVideoTech implements VideoTech { @Override public void setCamera(@Nullable String cameraId) { savedCameraId = cameraId; + if (call.getVideoCall() == null) { + LogUtil.w("ImsVideoTech.setCamera", "video call no longer exist"); + return; + } call.getVideoCall().setCamera(cameraId); call.getVideoCall().requestCameraCapabilities(); } |