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

java.lang.NullPointerException at com.adapty.internal.crossplatform.ui.Dependencies.injectInternal$default #13

Open
hasanfd opened this issue May 10, 2024 · 2 comments

Comments

@hasanfd
Copy link

hasanfd commented May 10, 2024

My android app crashed two times with this NPE

java.lang.NullPointerException at com.adapty.internal.crossplatform.ui.Dependencies.injectInternal$default

image

This is from sentry 👆
It looks like coders/parse.js is throwing this error. Can you take a look?
Thanks

@hasanfd
Copy link
Author

hasanfd commented May 10, 2024

Hello team,
I understand this could be because of an error in google services. But the app crashed. An error in google service should not end up with a crash. Can you guide me to prevent this? I am using your example code. Such as,

try {
    const paywall = await adapty.getPaywall(placement_id, locale);
    const view = await createPaywallView(paywall);
    view.registerEventHandlers({ ... })

    await view.present();
    await adapty.logShowPaywall(paywall);

  } catch (error) {
   ...
  }

Can I prevent this by adding catch somewhere? or is it internally happening?

@vladd-g
Copy link
Contributor

vladd-g commented Aug 6, 2024

hello @hasanfd, thank you for the report!

could you please provide more of the stacktrace for the NPE? thank you!

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

2 participants