Skip to content

Commit 398596c

Browse files
committed
Adding null check
1 parent 0a36c34 commit 398596c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ 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 raise conditions from prior inapp message timers. So adding a safety null check. See b/269599986
297+
return;
298+
}
299+
295300
// On click listener when X button or collapse button is clicked
296301
final View.OnClickListener dismissListener =
297302
new View.OnClickListener() {

0 commit comments

Comments
 (0)