Skip to content

fix: preserve null service values in find() resolution#49

Draft
TomA-R wants to merge 1 commit into
masterfrom
fix/find-null-values
Draft

fix: preserve null service values in find() resolution#49
TomA-R wants to merge 1 commit into
masterfrom
fix/find-null-values

Conversation

@TomA-R

@TomA-R TomA-R commented Jun 8, 2026

Copy link
Copy Markdown
Member

find() returned null both for a missing entry and for an entry that resolves to null, so the Injector treated a present-but-null dependency as absent and threw instead of supplying null to a nullable parameter.

Adds a FindResult::NotFound sentinel so find() keeps a present null distinct from absence. Tests cover both Injector resolution paths and the adapter.

find() returned null both for a missing entry and for an entry that resolves
to null, so the Injector treated a present-but-null dependency as absent and
threw instead of supplying null to a nullable parameter. Add a
FindResult::NotFound sentinel so a present null is kept distinct from absence.
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