Skip to content

fix: avoid NPE when a relative path is provided to Watcher::watch#3750

Merged
mpilquist merged 1 commit into
typelevel:mainfrom
i10416:fix/3472
Jul 21, 2026
Merged

fix: avoid NPE when a relative path is provided to Watcher::watch#3750
mpilquist merged 1 commit into
typelevel:mainfrom
i10416:fix/3472

Conversation

@i10416

@i10416 i10416 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Before this commit, Watcher::watch throws NPE when a path is relative path without a parent.
This commit updates watchFile methods to defensively convert a path into absolute path and adds a test to confirm it won't throw NPE.

It supersedes #3553 by SanjayUG

Before this commit, `Watcher::watch` throws NPE when a path is relative path
without a parent.
This commit updates watchFile methods to defensively convert a path into absolute path
and adds a test to confirm it won't throw NPE.

It supersedes typelevel#3553 by SanjayUG
@i10416

i10416 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

@mpilquist This is not urgent, but would you mind taking a look at this PR if you have a time?

@mpilquist
mpilquist merged commit 8f3ae75 into typelevel:main Jul 21, 2026
16 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.

2 participants