From b98da724ee52d0ff63739998c8d72d0fc9cabfa6 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 11 Mar 2014 12:16:06 -0700 Subject: Add null check in ContactInfoHelper.isBusiness Bug: 13415510 Change-Id: Ie099d661edbc4de8c7b3625fed006d10f0d757dd --- src/com/android/dialer/calllog/ContactInfoHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer') 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); } } -- cgit v1.2.3