summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-03-11 12:16:06 -0700
committerYorke Lee <yorkelee@google.com>2014-03-11 12:16:06 -0700
commitb98da724ee52d0ff63739998c8d72d0fc9cabfa6 (patch)
tree92b9419c441738299c1289cf74a2ad3cf1ca1ce0
parent7a5cf984b0cf20635f47ab6c6c44ec98871a06e3 (diff)
Add null check in ContactInfoHelper.isBusiness
Bug: 13415510 Change-Id: Ie099d661edbc4de8c7b3625fed006d10f0d757dd
-rw-r--r--src/com/android/dialer/calllog/ContactInfoHelper.java3
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);
}
}