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

Commit 6567a894 authored by Yorke Lee's avatar Yorke Lee
Browse files

DO NOT MERGE Add null check in ContactInfoHelper.isBusiness

Bug: 13415510
Change-Id: Ie099d661edbc4de8c7b3625fed006d10f0d757dd
parent 1f51f2bb
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -282,6 +282,7 @@ public class ContactInfoHelper {
     *        {@link #mCachedNumberLookupService}.
     *        {@link #mCachedNumberLookupService}.
     */
     */
    public boolean isBusiness(int sourceType) {
    public boolean isBusiness(int sourceType) {
        return mCachedNumberLookupService.isBusiness(sourceType);
        return mCachedNumberLookupService != null
                && mCachedNumberLookupService.isBusiness(sourceType);
    }
    }
}
}