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)