Skip to content

Commit 96bcc51

Browse files
authored
Merge c82824c into 0c1240e
2 parents 0c1240e + c82824c commit 96bcc51

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ public void run() {
292292
// it is safe to ignore this warning
293293
@SuppressLint("ClickableViewAccessibility")
294294
private void inflateBinding(final Activity activity, final BindingWrapper bindingWrapper) {
295+
if (inAppMessage == null) {
296+
// inAppMessage could get null because of race conditions from prior inapp message timers. So
297+
// adding a safety null check. See b/269599986
298+
return;
299+
}
300+
295301
// On click listener when X button or collapse button is clicked
296302
final View.OnClickListener dismissListener =
297303
new View.OnClickListener() {

0 commit comments

Comments
 (0)