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

NullPointerException on com.google.android.gms.ads.identifier.AdvertisingIdClient$Info.isLimitAdTrackingEnabled() #1548

Open
4 of 5 tasks
matteinn opened this issue Jan 4, 2024 · 3 comments

Comments

@matteinn
Copy link
Contributor

matteinn commented Jan 4, 2024

Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

Here's the stacktrace of a crash found from production users:

java.lang.NullPointerException (crashed)
Attempt to invoke virtual method 'boolean com.google.android.gms.ads.identifier.AdvertisingIdClient$Info.isLimitAdTrackingEnabled()' on a null object reference
com.revenuecat.purchases.google.attribution.GoogleDeviceIdentifiersFetcher.getAdvertisingID (Unknown Source:51)
com.revenuecat.purchases.google.attribution.GoogleDeviceIdentifiersFetcher.getDeviceIdentifiers$lambda$0 (Unknown Source:15)
com.revenuecat.purchases.google.attribution.GoogleDeviceIdentifiersFetcher.a (Unknown Source)
com.revenuecat.purchases.google.attribution.GoogleDeviceIdentifiersFetcher$$InternalSyntheticLambda$1$05e72c584e33dbd09bb60a652b02f5f9134b2cad99e8820e073032a93bb4cf4f$0.run (Unknown Source:5)
java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:462)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:301)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:923)
  1. Environment
    1. Platform: Android
    2. SDK version: 6.9.5
    3. OS version: 11
    4. Android Studio version: not relevant
    5. How widespread is the issue. Percentage of devices affected. < 0.01%
  2. Debug logs that reproduce the issue: not available
  3. Steps to reproduce, with a description of expected vs. actual behavior: not available
  4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.) Seems to be only happening on LGE Nexus 5X devices running Android 11

Additional context
Add any other context about the problem here.

@RCGitBot
Copy link
Contributor

RCGitBot commented Jan 4, 2024

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@tonidero
Copy link
Contributor

tonidero commented Jan 5, 2024

Thanks for reporting this @matteinn. We haven't been able to reproduce, but we've seen other similar reports related to the google ads library. We're working on a fix in #1550. Will let you know once we confirm and ship the fix!

@matteinn
Copy link
Contributor Author

matteinn commented Jan 5, 2024

Many thanks @tonidero, makes sense to me!

tonidero added a commit that referenced this issue Jan 5, 2024
### Description
This was reported in #1548. I wasn't able to reproduce but from looking
around, seems that an update to the the latest version of the library
should fix it. However, the latest version is pretty old (from 1/2022).
Just in case, I added a catch to that block of code with a log, so it
doesn't crash.
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

3 participants