Skip to content

Guard GetCanonicalPath against null - #1440

Open
tomatotomata wants to merge 1 commit into
apache:masterfrom
tomatotomata:codex/canonical-path-null-1409
Open

Guard GetCanonicalPath against null#1440
tomatotomata wants to merge 1 commit into
apache:masterfrom
tomatotomata:codex/canonical-path-null-1409

Conversation

@tomatotomata

Copy link
Copy Markdown
Contributor

Summary\n\n- throw ArgumentNullException when GetCanonicalPath receives a null FileSystemInfo\n- add a focused regression test\n\nThis is the small, separate null-contract piece from #1409. I ran the focused Lucene.Net.Support.IO.TestFileSupport tests on .NET 9 with the repository's test project override: 6 passed. The repository currently targets .NET 10 by default, which is not installed in this environment, so I kept the test command and result explicit for review.

Signed-off-by: ahmad <ahmadalgaidy@hotmail.com>
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