What happened?
Sometimes at app start, the app would randomly crash (saw 2 times out of ~50 attempts) at app open.
Crash:
Error attempting to execute operation: [com.onesignal.core.internal.operations.impl.OperationRepo$OperationQueueItem@24a7f5e]
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String
at com.onesignal.common.modeling.Model.getStringProperty(Model.kt:215)
at com.onesignal.common.modeling.Model.getStringProperty$default(Model.kt:215)
at com.onesignal.common.modeling.Model.getId(Model.kt:61)
at com.onesignal.common.modeling.ModelStore.get(ModelStore.kt:63)
at com.onesignal.common.modeling.SingletonModelStore.getModel(SingletonModelStore.kt:22)
at com.onesignal.user.internal.operations.impl.executors.RefreshUserOperationExecutor.getUser(RefreshUserOperationExecutor.kt:110)
at com.onesignal.user.internal.operations.impl.executors.RefreshUserOperationExecutor.access$getUser(RefreshUserOperationExecutor.kt:27)
at com.onesignal.user.internal.operations.impl.executors.RefreshUserOperationExecutor$getUser$1.invokeSuspend(Unknown Source:15)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
at com.onesignal.common.threading.ThreadUtilsKt$suspendifyOnThread$2.invoke(ThreadUtils.kt:74)
at com.onesignal.common.threading.ThreadUtilsKt$suspendifyOnThread$2.invoke(ThreadUtils.kt:73)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
Steps to reproduce?
What did you expect to happen?
App should not crash
OneSignal Android SDK version
5.0.1
Android version
13
Specific Android models
No response
Relevant log output
No response
Code of Conduct
What happened?
Sometimes at app start, the app would randomly crash (saw 2 times out of ~50 attempts) at app open.
Crash:
Steps to reproduce?
What did you expect to happen?
App should not crash
OneSignal Android SDK version
5.0.1
Android version
13
Specific Android models
No response
Relevant log output
No response
Code of Conduct