diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-11 12:16:06 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-11 12:16:06 -0700 |
commit | b98da724ee52d0ff63739998c8d72d0fc9cabfa6 (patch) | |
tree | 92b9419c441738299c1289cf74a2ad3cf1ca1ce0 | |
parent | 7a5cf984b0cf20635f47ab6c6c44ec98871a06e3 (diff) |
Add null check in ContactInfoHelper.isBusiness
Bug: 13415510
Change-Id: Ie099d661edbc4de8c7b3625fed006d10f0d757dd
-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 84ce27e49..dfe7aed79 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -283,6 +283,7 @@ public class ContactInfoHelper { * {@link #mCachedNumberLookupService}. */ public boolean isBusiness(int sourceType) { - return mCachedNumberLookupService.isBusiness(sourceType); + return mCachedNumberLookupService != null + && mCachedNumberLookupService.isBusiness(sourceType); } } |