diff options
author | Tyler Gunn <tgunn@google.com> | 2015-01-08 23:51:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-08 23:51:57 +0000 |
commit | cbe7187d72f1500b5441f2f028eeb5681df6b376 (patch) | |
tree | 7906d31c4e68036c658d254241db616e7bd85431 | |
parent | de212d16956fc3a40e5694f42ac2faa28e20fd3d (diff) | |
parent | e9a89b276628770d80bbd7d92cc6b38b1384e3a8 (diff) |
am 25c3e808: Merge "Fixing Null Pointer exception due to uninitialized view reference." into lmp-mr1-dev
* commit '25c3e808b91061e71d4cb1d1eccb0bc6beeb93a7':
Fixing Null Pointer exception due to uninitialized view reference.
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 75d995f4c..81b9ff78c 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -736,11 +736,12 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr mSecondaryCallName = (TextView) getView().findViewById(R.id.secondaryCallName); mSecondaryCallConferenceCallIcon = getView().findViewById(R.id.secondaryCallConferenceCallIcon); - if (hasProvider) { - mSecondaryCallProviderInfo.setVisibility(View.VISIBLE); - mSecondaryCallProviderLabel = (TextView) getView() - .findViewById(R.id.secondaryCallProviderLabel); - } + } + + if (mSecondaryCallProviderLabel == null && hasProvider) { + mSecondaryCallProviderInfo.setVisibility(View.VISIBLE); + mSecondaryCallProviderLabel = (TextView) getView() + .findViewById(R.id.secondaryCallProviderLabel); } } |