diff options
author | Etan Cohen <etancohen@google.com> | 2015-05-06 12:43:57 -0700 |
---|---|---|
committer | Etan Cohen <etancohen@google.com> | 2015-05-06 12:43:57 -0700 |
commit | f2f2d2d1c1e325272738bad429dc0c1000d82f35 (patch) | |
tree | 7e95727b38f4ee22c3fba5fad9c3c8ac9aeaa1fd /InCallUI | |
parent | f335e65ac4bc9ab4eb62be8ea1e0f0d74628139e (diff) |
Fix NPE for video card when VT not active
Change-Id: I5a88be1a3d463fd2570b98144f9caa626c8dc3bb
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 16385cfae..611a1f4cb 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -313,6 +313,9 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr // Retrieve here since at fragment creation time the incoming video view is not inflated. final View videoView = getView().findViewById(R.id.incomingVideo); + if (videoView == null) { + return; + } // Determine how much space there is below or to the side of the call card. final float spaceBesideCallCard = getSpaceBesideCallCard(); |