Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug : Observe Crash on OneSignal.initWithContext(getRepository().getContext(),oneSignalId) with Version 5.0.0 #8

Open
suyashraikar opened this issue Aug 24, 2023 · 0 comments

Comments

@suyashraikar
Copy link

The latest (5.0.0) version of SDK crashes during initialization using OneSignal.initWithContext(Context, String) method
The attached crash log is extracted from my application

Steps :

  • Install Release 5.0.0 version
  • Initalize SDK using OneSignal.initWithContext(getRepository().getContext(),oneSignalId) in Application class
  • Observe crash

Process: com.simpletherapy.android.mhealth, PID: 18149
java.lang.RuntimeException: Unable to create application com.simpletherapy.android.SimpleTherapyApplication: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6955)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase.start(TrackAmazonPurchase.kt:83)
at com.onesignal.core.internal.startup.StartupService.start(StartupService.kt:16)
at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:247)
at com.onesignal.OneSignal.initWithContext(OneSignal.kt:126)
at com.simpletherapy.android.SimpleTherapyApplication.onCreate(SimpleTherapyApplication.java:187)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6949)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant