Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

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

Closed
hasanfd opened this issue May 10, 2024 · 3 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!

@vladd-g
Copy link
Contributor

vladd-g commented Feb 4, 2025

Hello @hasanfd! I will close the issue since this repository is deprecated. If you believe you need help, please feel free to contact our support team via [email protected]

@vladd-g vladd-g closed this as completed Feb 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants