NullPointerException: Attempt to invoke virtual method 'int java.util.AbstractCollection.size()' on a null object reference

26 views
Skip to first unread message

Illia Achour

unread,
Dec 1, 2025, 7:48:27 PM12/1/25
to Google Mobile Ads SDK Developers
Hi AdMob team,

We’re seeing a recurrent crash inside the Google Mobile Ads SDK (com.google.android.gms:play-services-ads:24.8.0) on ChromeOS devices (AMD Stoney Ridge Chromebooks). None of our app code is involved.

Android 11
SDK version: 24.8.0
Device: Google Cros AMD Stoney Ridge Chromebook

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.AbstractCollection.size()' on a null object reference
   at com.google.android.gms.internal.ads.zzgtb.<init>(com.google.android.gms:play-services-ads@@24.8.0:1)
   at com.google.android.gms.internal.ads.zzgtd.<clinit>(com.google.android.gms:play-services-ads@@24.8.0:1)
   at com.google.android.gms.internal.ads.zzgtd.zzt(com.google.android.gms:play-services-ads@@24.8.0:2)
   at com.google.android.gms.internal.ads.zzgtd.zzq(com.google.android.gms:play-services-ads@@24.8.0:6)
   at com.google.android.gms.internal.ads.zzgtd.zzp(zzgtd.java:1)
   at com.google.android.gms.internal.ads.zzgym.zzn(com.google.android.gms:play-services-ads@@24.8.0:1)
   at com.google.android.gms.internal.ads.zzdzp.zzl(zzdzp.java:47)
   at com.google.android.gms.internal.ads.zzdze.run(zzdze.java:1)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
   at java.lang.Thread.run(Thread.java:923)

We unfortunately cannot reproduce this crash on any of our test devices or emulators, and we don’t know the exact conditions that trigger it. Since it happens entirely inside SDK internals, we’re hoping you can analyze the possible code paths that lead to a null collection being passed.

Mobile Ads SDK Forum Advisor

unread,
Dec 2, 2025, 2:09:00 AM12/2/25
to ilyaa...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting Mobile Ads SDK Support team.

The NullPointerException you're encountering within the Google Mobile Ads SDK (com.google.android.gms:play-services-ads:24.8.0) appears to be caused by a null collection being passed to a method that expects a non-null collection (specifically, the size() method is being invoked on a null object).

Could you confirm whether the mentioned issue is reproducible in the Google Sample project?

Could you kindly provide the below information privately so I will raise this issue with the wider team.

  • Sample project reproducing the issue
  • The full crash logs
  • How often does this occur (recent frequency and number of impacted users)

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files via reply to author option or by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=500Ht00001vUe3sIAC&entry.80707362=00346360

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-12-02 07:08:04Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vUe3s:ref" (ADR-00346360)



Reply all
Reply to author
Forward
0 new messages