Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37f14289 authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 6567a894: DO NOT MERGE Add null check in ContactInfoHelper.isBusiness

* commit '6567a894':
  DO NOT MERGE Add null check in ContactInfoHelper.isBusiness
parents bd8a362a 6567a894
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -282,6 +282,7 @@ public class ContactInfoHelper {
     *        {@link #mCachedNumberLookupService}.
     */
    public boolean isBusiness(int sourceType) {
        return mCachedNumberLookupService.isBusiness(sourceType);
        return mCachedNumberLookupService != null
                && mCachedNumberLookupService.isBusiness(sourceType);
    }
}