diff options
author | Tyler Gunn <tgunn@google.com> | 2015-04-14 15:12:37 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2015-04-14 15:25:09 -0700 |
commit | 54211febe8be96b771f793f441ec70b2e72a42b1 (patch) | |
tree | 0cd39cdd17717e6bb727072f2d5096e9de729c84 /InCallUI | |
parent | 27b3d40152e58f44171063312eb89a1ca65564a6 (diff) |
Adding missing null-check.
Bug: 19850018
Change-Id: I17e1ac4c91fbf91ce53ab6a111aed854f8e4116e
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/VideoCallPresenter.java | 3 |
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 5bd7fbe6c..64f33231f 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -909,6 +909,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); |