Skip to content

Validate legacy TransformSafeAsync factories before forwarding - #1185

Open
dwcullop wants to merge 2 commits into
mainfrom
u/dacullop/main/transformsafe-null-validation
Open

dwcullop wants to merge 2 commits into
mainfrom
u/dacullop/main/transformsafe-null-validation

Conversation

@dwcullop

Copy link
Copy Markdown
Member

The legacy TransformSafeAsync overloads forwarded their arguments to the newer implementation without validating them first, so a null transformFactory or errorHandler surfaced later (or not at all) instead of failing at the call site.

This adds eager argument validation to those overloads so a null factory or error handler throws ArgumentNullException immediately, matching the behavior of the rest of the cache operator surface. Tests cover the null-argument cases for the affected overloads.

Focused validation for this change passed prior to submission.

Fixes #1183

This branch has not been deployed

No deployments
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.

[Bug]: TransformSafeAsync options overload accepts a null legacy factory

1 participant