summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Bird <sbird@cyngn.com>2016-05-04 18:17:22 (GMT)
committerStephen Bird <sbird@cyngn.com>2016-05-04 18:17:22 (GMT)
commit5564f99a4ba3a1d449b4e978ffd54f5179d3510b (patch)
tree0be2030aedc1258e1128496a71a437badf767867
parentb5448ef00c5bc584391e41f14edd5d8a86249e24 (diff)
downloadandroid_packages_apps_PhoneCommon-5564f99a4ba3a1d449b4e978ffd54f5179d3510b.zip
android_packages_apps_PhoneCommon-5564f99a4ba3a1d449b4e978ffd54f5179d3510b.tar.gz
android_packages_apps_PhoneCommon-5564f99a4ba3a1d449b4e978ffd54f5179d3510b.tar.bz2
NPE: no credit info available
Change-Id: I327feedc7a1517e8ef8f15e8d960048389de5790 Ticket: CD-619
-rw-r--r--src-ambient/com/android/phone/common/incall/CallMethodInfo.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-ambient/com/android/phone/common/incall/CallMethodInfo.java b/src-ambient/com/android/phone/common/incall/CallMethodInfo.java
index 0fd90d1..fe7da27 100644
--- a/src-ambient/com/android/phone/common/incall/CallMethodInfo.java
+++ b/src-ambient/com/android/phone/common/incall/CallMethodInfo.java
@@ -241,7 +241,9 @@ public class CallMethodInfo implements Cloneable {
public String getCreditsDescriptionText(Resources r) {
CreditInfo ci = this.mProviderCreditInfo;
-
+ if (ci == null) {
+ return null;
+ }
List<SubscriptionInfo> subscriptionInfos = ci.subscriptions;
if (showSubscriptions()) {