Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ private static boolean isCustomTabsServiceSupported(@NonNull final Context conte

private static boolean isFullBrowser(final ResolveInfo resolveInfo) {
// The filter must match ACTION_VIEW, CATEGORY_BROWSEABLE, and at least one scheme,
if (!resolveInfo.filter.hasAction(Intent.ACTION_VIEW)
if (resolveInfo.filter == null
|| !resolveInfo.filter.hasAction(Intent.ACTION_VIEW)
|| !resolveInfo.filter.hasCategory(Intent.CATEGORY_BROWSABLE)
|| resolveInfo.filter.schemesIterator() == null) {
return false;
Expand Down