Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Android IMA SDK playAd(),pauseAd(),stopAd() method parameters sometimes return null resulting in crash

40 views
Skip to first unread message

jz z

unread,
Dec 19, 2024, 4:12:27 AM12/19/24
to Interactive Media Ads SDK
Hi,team
I'm using kotlin to implement the VideoAdPlayer method and some users are getting this error:
Fatal Exception: java.lang.NullPointerException: Parameter specified as non-null is null: method com.xxx.IMAAdapter.pauseAd, parameter adMediaInfo.
IMA SDK:v3.35.1
       

IMA SDK

unread,
Dec 19, 2024, 10:17:58 AM12/19/24
to 100451...@gmail.com, ima...@googlegroups.com

Hi,

Thank you for contacting the IMA SDK Support team.

Please note that It’s always advisable to use the latest version to prevent conflicts, so ensure you’ve integrated the most recent version.

I have run the Google sample application in kotlin with the mentioned version and it has been executed multiple times without encountering any null-related crashes. As kotlin enforces null safety, meaning if you declare a parameter as non-nullable, Kotlin will throw an exception if it receives a null value.

Can you please send us the below details for further investigation:

  • Steps to reproduce the crash
  • Confirm if the crash occurs in our Google AdvancedExample 
  • Sample project reproducing the issue.  

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. Kindly follow using the steps below:

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=5004Q00002vFwdbQAC&entry.80707362=00267250

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.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGphm:ref" (ADR-00279241)

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 


Reply all
Reply to author
Forward
0 new messages