Skip to content

Commit ee74cd0

Browse files
authored
Catch null on queryIntentServices to fix NPE (#2263)
1 parent 86b04aa commit ee74cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-inappmessaging-display/src/main/java/com/google/firebase/inappmessaging/display/FirebaseInAppMessagingDisplay.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,6 @@ private boolean supportsCustomTabs(Activity activity) {
561561
customTabIntent.setPackage("com.android.chrome");
562562
List<ResolveInfo> resolveInfos =
563563
activity.getPackageManager().queryIntentServices(customTabIntent, 0);
564-
return !resolveInfos.isEmpty();
564+
return resolveInfos != null && !resolveInfos.isEmpty();
565565
}
566566
}

0 commit comments

Comments
 (0)