You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:
For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized Firebase support channel.
Exception java.lang.NullPointerException:
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay.extractActions (FirebaseInAppMessagingDisplay.java:437)
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay.inflateBinding (FirebaseInAppMessagingDisplay.java:308)
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay.access$000 (FirebaseInAppMessagingDisplay.java:79)
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay$1.run (FirebaseInAppMessagingDisplay.java:286)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:246)
at android.app.ActivityThread.main (ActivityThread.java:8653)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
FirebaseInAppMessagingDisplay.extractActions :
private List extractActions(InAppMessage message) {
List actions = new ArrayList<>();
switch (message.getMessageType()) {
case BANNER:
actions.add(((BannerMessage) message).getAction());
break;
case CARD:
actions.add(((CardMessage) message).getPrimaryAction());
actions.add(((CardMessage) message).getSecondaryAction());
break;
case IMAGE_ONLY:
actions.add(((ImageOnlyMessage) message).getAction());
break;
case MODAL:
actions.add(((ModalMessage) message).getAction());
break;
default:
// An empty action is treated like a dismiss
actions.add(Action.builder().build());
}
return actions;
}
Crash device information appears:
Relevant Code:
I just added:
implementation platform('com.google.firebase:firebase-bom:31.1.0')
implementation 'com.google.firebase:firebase-inappmessaging-display'
The text was updated successfully, but these errors were encountered:
Hi @TangAnna, thanks for reporting. Seems to be a duplicate. Kindly give #4214 a thumbs up, so our engineers can prioritize this accordingly. You may also continue sharing information or details that you find helpful to our investigation. Thanks again!
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Exception java.lang.NullPointerException:
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay.extractActions (FirebaseInAppMessagingDisplay.java:437)
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay.inflateBinding (FirebaseInAppMessagingDisplay.java:308)
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay.access$000 (FirebaseInAppMessagingDisplay.java:79)
at com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay$1.run (FirebaseInAppMessagingDisplay.java:286)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:246)
at android.app.ActivityThread.main (ActivityThread.java:8653)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
FirebaseInAppMessagingDisplay.extractActions :
private List extractActions(InAppMessage message) {
List actions = new ArrayList<>();
switch (message.getMessageType()) {
case BANNER:
actions.add(((BannerMessage) message).getAction());
break;
case CARD:
actions.add(((CardMessage) message).getPrimaryAction());
actions.add(((CardMessage) message).getSecondaryAction());
break;
case IMAGE_ONLY:
actions.add(((ImageOnlyMessage) message).getAction());
break;
case MODAL:
actions.add(((ModalMessage) message).getAction());
break;
default:
// An empty action is treated like a dismiss
actions.add(Action.builder().build());
}
return actions;
}
Crash device information appears:


Relevant Code:
The text was updated successfully, but these errors were encountered: