summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-14 00:15:03 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-14 00:15:03 +0000
commit8241b72bf21008d60e1822042c1e8433c8eb4a64 (patch)
tree99a4a0245b1f92b89c7bdbf884009659963f54a6
parente5aefb59d67cdb36020c520471453299cd229397 (diff)
parent97910c8fc579f17e6f2fe464a55b7ad47681252f (diff)
am 5eb0993c: am bcf67a24: am 599477af: Null protect getUi() in configureAnswerTargetsForSms
* commit '5eb0993cf86b68972e0e790b888c6640a140dfb0': Null protect getUi() in configureAnswerTargetsForSms
-rw-r--r--InCallUI/src/com/android/incallui/AnswerPresenter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java
index 1453fa517..a5a88ffa5 100644
--- a/InCallUI/src/com/android/incallui/AnswerPresenter.java
+++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java
@@ -265,6 +265,9 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi>
}
private void configureAnswerTargetsForSms(Call call, List<String> textMsgs) {
+ if (getUi() == null) {
+ return;
+ }
mHasTextMessages = textMsgs != null;
boolean withSms =
call.can(android.telecom.Call.Details.CAPABILITY_RESPOND_VIA_TEXT)