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

Crash when showing AppOpenAd #53

Closed
zeoowl-dev opened this issue Nov 6, 2022 · 1 comment · Fixed by #69
Closed

Crash when showing AppOpenAd #53

zeoowl-dev opened this issue Nov 6, 2022 · 1 comment · Fixed by #69
Assignees
Labels
@bug Something isn't working core Marks an Issue/PR as linked to the ceres:core module @priority-high

Comments

@zeoowl-dev
Copy link

Here is the log

FATAL EXCEPTION: main
  Process: com.zeoowl.lwp.aquarium.dev, PID: 23798
    java.lang.NullPointerException
    at dev.teogor.ceres.core.global.GlobalData.getActivity(GlobalData.kt:35)
    at dev.teogor.ceres.ads.formats.AppOpenAd.show(AppOpenAd.kt:87)
    at dev.teogor.ceres.ads.startup.AdsProvider.showAd(AdsProvider.kt:111)
    at dev.teogor.ceres.ads.startup.AdsProvider.onActivityStarted(AdsProvider.kt:88)
    at android.app.Application.dispatchActivityStarted(Application.java:405)
    at android.app.Activity.dispatchActivityStarted(Activity.java:1406)
    at android.app.Activity.onStart(Activity.java:1922)
    at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:345)
    at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:248)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1455)
    at android.app.Activity.performStart(Activity.java:8315)
    at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4136)
    at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
    at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8751)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
@teogor teogor added this to the 1.0.0-beta01 milestone Nov 6, 2022
@teogor teogor self-assigned this Nov 6, 2022
@teogor teogor modified the milestone: 1.0.0-beta01 Nov 7, 2022
@teogor
Copy link
Owner

teogor commented Nov 7, 2022

it looks like this occurs due to wrong order of reading the current activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@bug Something isn't working core Marks an Issue/PR as linked to the ceres:core module @priority-high
Projects
Development

Successfully merging a pull request may close this issue.

2 participants