diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-13 23:43:23 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-13 23:43:23 +0000 |
commit | 9215d9bf6bc854e59357d5e85e7dfcd7b2fabb07 (patch) | |
tree | c82f545292814a4fd55363297d9f71a2f2ef3768 | |
parent | 6fc9b3cc2bd9132c578eb08b0e39959a91ff4b93 (diff) | |
parent | e6a52dbed95f9d01d07db1c17702764a454803b7 (diff) |
am e6a52dbe: am 37f14289: am 6567a894: DO NOT MERGE Add null check in ContactInfoHelper.isBusiness
* commit 'e6a52dbed95f9d01d07db1c17702764a454803b7':
DO NOT MERGE Add null check in ContactInfoHelper.isBusiness
-rw-r--r-- | src/com/android/dialer/calllog/ContactInfoHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index 28edcf3ec..e1a01b4ed 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -282,6 +282,7 @@ public class ContactInfoHelper { * {@link #mCachedNumberLookupService}. */ public boolean isBusiness(int sourceType) { - return mCachedNumberLookupService.isBusiness(sourceType); + return mCachedNumberLookupService != null + && mCachedNumberLookupService.isBusiness(sourceType); } } |