Hi Alex,
Thank you for reaching out to us.
Can you confirm if you are able to encounter this error in any of our sample apps (https://github.com/googleads/googleads-ima-android/releases)? For us to further check this Incorrect @NonNull annotations that you're encountering, can you provide us the following information for us to further check?
In addition to that, you may use our sample app (https://github.com/googleads/googleads-ima-android/releases) for reference in your implementation to avoid any error.
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 with me by performing the following steps:
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.
![]() |
IMA SDK Team |
Hi Alex,
Thank you for contacting the IMA SDK support team.
By reviewing your concern, I understand that you are getting NPE on AdEvent.getAdData() happens with LOADED events, AdEvent.getAd() NPE happens with CONTENT_RESUME_REQUESTED events. I would like to inform you that our team is currently working on this issue. One of our teammates will get back to you once we have an update on this. Meanwhile your patience is appreciated.
![]() |
IMA SDK Team |
Hi Alex,
We have noticed that this is an intended behavior. Prior to invoking the adEvent.getAd() method, it is necessary to verify if it contains a value or is null.
Please check the below workaround:
Ad currentAd = adEvent.getAd();
if (currentAd) {
currentAd.getAdPodInfo();
// Or do other things with the Ad.
Hi Alex,
Thank you for getting back to us.
We can achieve this by using the Kotlin Null safety operators. Please find below Kotlin work around:
val ad = event?.ad
val adPodInfo:AdPodInfo? = ad?.adPodInfo
Log.d(TAG,adPodInfo.toString())
Hi Alex,
Thank you for your feedback. I will convey your suggestion to our team.