Skip to content

support "ls /"#1436

Merged
gnodet merged 1 commit intojline:masterfrom
paulk-asert:ls_root
Feb 11, 2026
Merged

support "ls /"#1436
gnodet merged 1 commit intojline:masterfrom
paulk-asert:ls_root

Conversation

@paulk-asert
Copy link
Contributor

When running ./mvx demo PosixCommandsRegistryExample and invoking the ls / command, the following error occurs (at least on macOS):

Error: Cannot invoke "java.nio.file.Path.toString()" because the return value of "java.nio.file.Path.getFileName()" is null

The JavaDoc for Path#getFileName says it can return null. With this PR, the command works as expected, showing the files in the root directory.

@gnodet gnodet merged commit 10fe30f into jline:master Feb 11, 2026
9 checks passed
@gnodet gnodet added this to the 4.0.0 milestone Feb 11, 2026
gnodet pushed a commit that referenced this pull request Feb 11, 2026
(cherry picked from commit 10fe30f)
@gnodet
Copy link
Member

gnodet commented Feb 11, 2026

💚 All backports created successfully

Status Branch Result
jline-3.x

Questions ?

Please refer to the Backport tool documentation

gnodet pushed a commit that referenced this pull request Feb 11, 2026
(cherry picked from commit 10fe30f)
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