Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native ad crash in 2.1.7 #715

Closed
ValentinPostindustria opened this issue Nov 15, 2023 · 0 comments · Fixed by #716
Closed

Native ad crash in 2.1.7 #715

ValentinPostindustria opened this issue Nov 15, 2023 · 0 comments · Fixed by #716
Assignees

Comments

@ValentinPostindustria
Copy link
Collaborator

ValentinPostindustria commented Nov 15, 2023

Describe the bug
Native ad without impression trackers crashes the app. It seems this happened after the PR merge #705.

Additional context
It happens when adm doesn't have eventrackers field and imp_size array is null.

Logcat:

AndroidRuntime           E  FATAL EXCEPTION: main
                            Process: com.magnite.demand.manager.kotlin, PID: 8657
                            java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
                            	at org.prebid.mobile.PrebidNativeAd.createImpressionTrackers(PrebidNativeAd.java:369)
                            	at org.prebid.mobile.PrebidNativeAd.registerView(PrebidNativeAd.java:350)
                            	at com.magnite.demand.manager.kotlin.activities.examples.gam.MultiformatBannerNativeInAppActivity.inflatePrebidNativeAd(MultiformatBannerNativeInAppActivity.kt:212)
                            	at com.magnite.demand.manager.kotlin.activities.examples.gam.MultiformatBannerNativeInAppActivity.access$inflatePrebidNativeAd(MultiformatBannerNativeInAppActivity.kt:30)
                            	at com.magnite.demand.manager.kotlin.activities.examples.gam.MultiformatBannerNativeInAppActivity$showPrebidNativeAd$1.onPrebidNativeLoaded(MultiformatBannerNativeInAppActivity.kt:181)
                            	at org.prebid.mobile.addendum.AdViewUtils.findNativeInGAMCustomTemplateAd(AdViewUtils.java:433)
                            	at org.prebid.mobile.addendum.AdViewUtils.findNative(AdViewUtils.java:411)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant