summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-03-13 19:33:53 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-13 19:33:53 +0000
commite6a52dbed95f9d01d07db1c17702764a454803b7 (patch)
treec82f545292814a4fd55363297d9f71a2f2ef3768
parent6a47ffde5106c182e61e17fe15ac8013ccc2c804 (diff)
parent37f142891fa0e3edd6bdefa3f25628e4c1aa900f (diff)
am 37f14289: am 6567a894: DO NOT MERGE Add null check in ContactInfoHelper.isBusiness
* commit '37f142891fa0e3edd6bdefa3f25628e4c1aa900f': 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);
}
}