summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-04-14 15:12:37 -0700
committerYorke Lee <yorkelee@google.com>2015-04-16 10:24:58 -0700
commit3c73ccff117f4481a7e7a09464e0e9993c73c6c8 (patch)
tree9d9916bac2caa138ce9105e544d65a8736cd42b2
parentca1ea57bb11a28efca6155a3755617136e2fdb79 (diff)
Adding missing null-check.
Bug: 19850018 Change-Id: I17e1ac4c91fbf91ce53ab6a111aed854f8e4116e
-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 16a6e4849..9bc0822bf 100644
--- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java
@@ -906,6 +906,9 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
public void onDeviceOrientationChanged(int orientation) {
mDeviceOrientation = orientation;
Point previewDimensions = getUi().getPreviewSize();
+ if (previewDimensions == null) {
+ return;
+ }
Log.d(this, "onDeviceOrientationChanged: orientation=" + orientation + " size: "
+ previewDimensions);
changePreviewDimensions(previewDimensions.x, previewDimensions.y);