Skip to content
Open
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ V.16.1.0
V.16.0.1
----------
- [MINOR] Add LTW as prod broker app (#2179)
- [MINOR] Fix possible NPE in isFullBrowser() (#2085)

V.16.0.0
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ private static boolean isCustomTabsServiceSupported(@NonNull final Context conte
return !(resolveInfos == null || resolveInfos.isEmpty());
}

private static boolean isFullBrowser(final ResolveInfo resolveInfo) {
private static boolean isFullBrowser(@NonNull 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