diff options
author | Etan Cohen <etancohen@google.com> | 2015-05-06 12:43:57 -0700 |
---|---|---|
committer | Anthony Lee <anthonylee@google.com> | 2015-05-07 07:07:20 -0700 |
commit | 8ab315cc3a567e4739b791744916df5f8b7098c7 (patch) | |
tree | a86d8f0880aec7a0eb818d3d6072502d71806940 | |
parent | ed8488149b8d842ee86b4c209d0f39d71f004146 (diff) |
Fix NPE for video card when VT not active
Change-Id: I5a88be1a3d463fd2570b98144f9caa626c8dc3bb
-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 2acabd694..499f46417 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -311,6 +311,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(); |