IMA SDK | Nullpointer exception | pauseAd()

32 views
Skip to first unread message

Hutendra Singh

unread,
Oct 22, 2024, 4:06:33 AMOct 22
to Interactive Media Ads SDK
Hi IMA SDK Team,
We are experiencing a NullPointerException in the Android IMA SDK (version 3.35.1) when the pauseAd() method is called with a null AdMediaInfo. This crash occurs specifically when the video finishes playing, and it has been observed on some devices but not all.

Crash log:  
          Fatal Exception: java.lang.NullPointerException: Parameter specified as non-null is null: method PA.d.pauseAd, parameter info
       at in.xxx.ads.ImaAdPlayerImp$1.pauseAd(ImaAdPlayerImp.kt:3)
       at com.google.ads.interactivemedia.v3.impl.zzbl.zza(com.google.ads.interactivemedia.v3:interactivemedia@@3.35.1:8)
       at com.google.ads.interactivemedia.v3.impl.zzba.zza(com.google.ads.interactivemedia.v3:interactivemedia@@3.35.1:30)
       at com.google.ads.interactivemedia.v3.impl.zzbk.zzh(com.google.ads.interactivemedia.v3:interactivemedia@@3.35.1:7)
       at com.google.ads.interactivemedia.v3.impl.zzbg.onPostMessage(com.google.ads.interactivemedia.v3:interactivemedia@@3.35.1:2)
       at androidx.webkit.internal.WebMessageListenerAdapter.onPostMessage(WebMessageListenerAdapter.java:55)
       at java.lang.reflect.Method.invoke(Method.java)
       at org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil$InvocationHandlerWithDelegateGetter.invoke(BoundaryInterfaceReflectionUtil.java:162)
       at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
       at $Proxy12.onPostMessage()
       at WV.pX.run(chromium-TrichromeWebViewGoogle6432.aab-stable-666808133:101)
       at android.os.Handler.handleCallback(Handler.java:942)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8762)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
        

“The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.” - George Bernard Shaw
_____________________________________________________________________

VCO Inspiration

IMA SDK

unread,
Oct 22, 2024, 6:28:26 PMOct 22
to ima...@googlegroups.com
Hi,

I have tried running sample app by passing adMediaInfo null in onPaused() but unable to reproduce the issue. Kindly provide us device details in which you are able to observe the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGfkR:ref" (ADR-00272514)

Thanks,
 
Google Logo IMA SDK Team

 

Reply all
Reply to author
Forward
0 new messages