summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2015-05-06 12:43:57 -0700
committerEtan Cohen <etancohen@google.com>2015-05-06 12:43:57 -0700
commitf2f2d2d1c1e325272738bad429dc0c1000d82f35 (patch)
tree7e95727b38f4ee22c3fba5fad9c3c8ac9aeaa1fd /InCallUI
parentf335e65ac4bc9ab4eb62be8ea1e0f0d74628139e (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.java3
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();