Hi,
A crash surfaced after we integrated Google Native Ads Advanced recently.
Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:411)
at com.mopub.nativeads.GooglePlayServicesNative$GooglePlayServicesNativeAd.isValidContentAd(Unknown Source)
at com.mopub.nativeads.GooglePlayServicesNative$GooglePlayServicesNativeAd.access$400(Unknown Source)
at com.mopub.nativeads.GooglePlayServicesNative$GooglePlayServicesNativeAd$3.onContentAdLoaded(Unknown Source)
Based on the information on Google’s page:
https://developers.google.com/android/reference/com/google/android/gms/ads/formats/NativeContentAd
Images seems to be a recommended field only.
We believed there are chances that Google serves native ads without any image as an empty ArrayList which leads to this crash.
David