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

Commit b98da724 authored by Yorke Lee's avatar Yorke Lee
Browse files

Add null check in ContactInfoHelper.isBusiness

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