summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard MacGregor <rmacgregor@cyngn.com>2016-04-28 17:52:36 (GMT)
committerRajesh Yengisetty <rajesh@cyngn.com>2016-04-28 18:00:56 (GMT)
commit2c6381909e258f2ccf647f7328afaa95b5220356 (patch)
tree2beff6ce65da2ec5c3515c396209e14187cf76e6
parentecc708d3c1417b60f316a0387d17f2cf4c67c2b1 (diff)
downloadandroid_packages_apps_PhoneCommon-2c6381909e258f2ccf647f7328afaa95b5220356.zip
android_packages_apps_PhoneCommon-2c6381909e258f2ccf647f7328afaa95b5220356.tar.gz
android_packages_apps_PhoneCommon-2c6381909e258f2ccf647f7328afaa95b5220356.tar.bz2
Fix NPE if getCreditResult is null
Ticket: CD-591 Change-Id: Id19534eccca16a929286c99008647f82ce718b03
-rw-r--r--src-ambient/com/android/phone/common/incall/api/InCallResults.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-ambient/com/android/phone/common/incall/api/InCallResults.java b/src-ambient/com/android/phone/common/incall/api/InCallResults.java
index b636f56..8e0064e 100644
--- a/src-ambient/com/android/phone/common/incall/api/InCallResults.java
+++ b/src-ambient/com/android/phone/common/incall/api/InCallResults.java
@@ -167,7 +167,7 @@ public class InCallResults extends ApiHelper {
}
public static void gotCreditData(CallMethodInfo callMethodInfo, GetCreditInfoResult result) {
- if (result.creditInfo == null) {
+ if (result == null || result.creditInfo == null) {
// Build zero credit dummy if no result found.
callMethodInfo.mProviderCreditInfo = new CreditInfo(new CreditBalance(0, null), null);
} else {