summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-03-11 23:22:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-11 23:22:33 +0000
commit37f142891fa0e3edd6bdefa3f25628e4c1aa900f (patch)
tree320bd80ccfc69d707f7fec21b72c1233c475a32b
parentbd8a362a5bc1fdb224181cce20daa026e71e2667 (diff)
parent6567a894fb1a852c5dbfa1ad2848207494a7eae0 (diff)
am 6567a894: DO NOT MERGE Add null check in ContactInfoHelper.isBusiness
* commit '6567a894fb1a852c5dbfa1ad2848207494a7eae0': DO NOT MERGE Add null check in ContactInfoHelper.isBusiness
-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);
}
}