commit | b98da724ee52d0ff63739998c8d72d0fc9cabfa6 | [log] [tgz] |
---|---|---|
author | Yorke Lee <yorkelee@google.com> | Tue Mar 11 12:16:06 2014 -0700 |
committer | Yorke Lee <yorkelee@google.com> | Tue Mar 11 12:16:06 2014 -0700 |
tree | 92b9419c441738299c1289cf74a2ad3cf1ca1ce0 | |
parent | 7a5cf984b0cf20635f47ab6c6c44ec98871a06e3 [diff] |
Add null check in ContactInfoHelper.isBusiness Bug: 13415510 Change-Id: Ie099d661edbc4de8c7b3625fed006d10f0d757dd
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index 84ce27e..dfe7aed 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java
@@ -283,6 +283,7 @@ * {@link #mCachedNumberLookupService}. */ public boolean isBusiness(int sourceType) { - return mCachedNumberLookupService.isBusiness(sourceType); + return mCachedNumberLookupService != null + && mCachedNumberLookupService.isBusiness(sourceType); } }