Skip to content

fix: null guard onBannerAdLoaded - #6

Open
felipefuzaro-funda wants to merge 1 commit into
msbit:ad-loader-adfrom
felipefuzaro-funda:fix/null-guard-ad-loader-ad
Open

felipefuzaro-funda wants to merge 1 commit into
msbit:ad-loader-adfrom
felipefuzaro-funda:fix/null-guard-ad-loader-ad

Conversation

@felipefuzaro-funda

@felipefuzaro-funda felipefuzaro-funda commented Oct 26, 2026 •

Copy link
Copy Markdown

Adds a null check for the activity in onBannerAdLoaded. If the plugin isn't attached to an activity, it logs an error and skips creating the banner view.

Applying the same approach as in https://github.com/msbit/googleads-mobile-flutter/blob/ad-loader-ad/packages/google_mobile_ads/android/src/adsNextGenSdk/java/io/flutter/plugins/googlemobileads/FlutterBannerAd.java#L111-L115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant