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 19:17:42 +0000
commit6567a894fb1a852c5dbfa1ad2848207494a7eae0 (patch)
tree9ebb97cee6e7200e5e017e81afdd065f4d2e2078
parent1f51f2bb9fc93a94c9dcccbc3a2c5d443ae2c797 (diff)
DO NOT MERGE 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 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);
}
}