Skip to content

[Bug]: EventProducer.fire (1) - Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 #2007

@area51bis

Description

@area51bis

What happened?

Multiple errors in Crashlytics

Steps to reproduce?

I can't reproduce it, but there are quite a few records in Crashlytics.

What did you expect to happen?

No crash...

OneSignal Android SDK version

Release 5.1.3

Android version

13, 12

Specific Android models

* Galaxy A54 5G
* Galaxy S20 FE 5G
* Galaxy A51
* Motorola Edge 30 Neo
* Moto G53 5G
* Moto G22
* Redmi Note 12

Relevant log output

Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.get(ArrayList.java:437)
       at java.util.Collections$SynchronizedList.get(Collections.java:2468)
       at kotlin.collections.CollectionsKt___CollectionsKt.toList(_Collections.kt:1315)
       at com.onesignal.common.events.EventProducer.fire(EventProducer.kt:48)
       at com.onesignal.core.internal.application.impl.ApplicationService.onGlobalLayout(ApplicationService.kt:208)
       at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1061)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3033)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2005)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8234)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
       at android.view.Choreographer.doCallbacks(Choreographer.java:796)
       at android.view.Choreographer.doFrame(Choreographer.java:731)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:223)
       at android.app.ActivityThread.main(ActivityThread.java:7945)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:603)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions