Skip to content

Fix Null type in FlutterLoadAdError domain for adsNextGenSdk#1461

Open
LTPhantom wants to merge 1 commit into
mainfrom
nextGenAndroid-v9-bump
Open

Fix Null type in FlutterLoadAdError domain for adsNextGenSdk#1461
LTPhantom wants to merge 1 commit into
mainfrom
nextGenAndroid-v9-bump

Conversation

@LTPhantom

@LTPhantom LTPhantom commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Description

Added a null check on responseInfo.getMediationAdapterClassName(). If null, domain falls back to "com.google.android.libraries.ads.mobile.sdk", matching the fallback behavior when error.getResponseInfo() is null.

Related Issues

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@LTPhantom
LTPhantom force-pushed the nextGenAndroid-v9-bump branch from cc55bca to 8406a73 Compare July 20, 2026 18:46
@LTPhantom
LTPhantom requested a review from luo86 July 20, 2026 18:46
@LTPhantom
LTPhantom marked this pull request as ready for review July 20, 2026 18:46

@malandr2 malandr2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for DevRel

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.

[Next-gen SDK] LoadAdError decoding throws "type 'Null' is not a subtype of type 'String'" when mediationAdapterClassName is nul

3 participants