Skip to content

[src] Fix a few nullablity issues in a few places.#25043

Merged
rolfbjarne merged 2 commits intomainfrom
dev/rolf/src-nullability-misc
Mar 31, 2026
Merged

[src] Fix a few nullablity issues in a few places.#25043
rolfbjarne merged 2 commits intomainfrom
dev/rolf/src-nullability-misc

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a handful of nullable-reference-type correctness issues across the bindings and tests, primarily by making APIs accept null where the underlying native APIs already do, and by adjusting tests/call sites accordingly.

Changes:

  • Add a regression test for CIFilter.FilterNamesInCategories behavior with null vs no-argument calls.
  • Update CoreImage filter introspection tests to call FilterNamesInCategories() without explicitly passing null.
  • Make a few public APIs nullable where appropriate (NetworkReachability address-pair ctor, SecPolicy.CreateSslPolicy host name, CIFilter.FilterNamesInCategories params array).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/monotouch-test/CoreImage/FilterTest.cs Adds a test validating FilterNamesInCategories() vs FilterNamesInCategories(null) behavior.
tests/introspection/ApiCoreImageFiltersTest.cs Switches filter enumeration to FilterNamesInCategories() calls.
src/SystemConfiguration/NetworkReachability.cs Updates the address-pair constructor and helper to accept nullable IPAddress values.
src/Security/Policy.cs Makes CreateSslPolicy accept a nullable host name and tidies XML docs.
src/CoreImage/CIFilter.cs Updates FilterNamesInCategories signature to accept a nullable params array.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
@rolfbjarne rolfbjarne enabled auto-merge (squash) March 30, 2026 13:42
@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #080a190] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 080a190c4ee223f59b4dd37abd9de40a785b6fb3 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #080a190] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 080a190c4ee223f59b4dd37abd9de40a785b6fb3 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 080a190c4ee223f59b4dd37abd9de40a785b6fb3 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #080a190] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 080a190c4ee223f59b4dd37abd9de40a785b6fb3 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

2 similar comments
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🚀 [CI Build #080a190] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 156 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. [attempt 5] Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. [attempt 5] Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. [attempt 5] Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. [attempt 5] Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. [attempt 5] Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. [attempt 5] Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 080a190c4ee223f59b4dd37abd9de40a785b6fb3 [PR build]

@rolfbjarne rolfbjarne merged commit 25b653b into main Mar 31, 2026
48 checks passed
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.

4 participants