diff options
author | Richard MacGregor <rmacgregor@cyngn.com> | 2016-04-28 10:52:36 -0700 |
---|---|---|
committer | Rajesh Yengisetty <rajesh@cyngn.com> | 2016-04-28 11:00:56 -0700 |
commit | 2c6381909e258f2ccf647f7328afaa95b5220356 (patch) | |
tree | 2beff6ce65da2ec5c3515c396209e14187cf76e6 | |
parent | ecc708d3c1417b60f316a0387d17f2cf4c67c2b1 (diff) | |
download | android_packages_apps_PhoneCommon-2c6381909e258f2ccf647f7328afaa95b5220356.tar.gz android_packages_apps_PhoneCommon-2c6381909e258f2ccf647f7328afaa95b5220356.tar.bz2 android_packages_apps_PhoneCommon-2c6381909e258f2ccf647f7328afaa95b5220356.zip |
Fix NPE if getCreditResult is null
Ticket: CD-591
Change-Id: Id19534eccca16a929286c99008647f82ce718b03
-rw-r--r-- | src-ambient/com/android/phone/common/incall/api/InCallResults.java | 2 |
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 { |