Skip to content

Fix FileLogger NPE when log file has no parent directory (#204) - #207

Merged
elharo merged 1 commit into
apache:masterfrom
tanvir-ux:fix-204-filelogger-null-parent
Sep 4, 2026
Merged

elharo merged 1 commit into
apache:masterfrom
tanvir-ux:fix-204-filelogger-null-parent

Conversation

@tanvir-ux

Copy link
Copy Markdown
Contributor

Fixes #204.

FileLogger called Files.createDirectories(outputPath.getParent()) even when getParent() was null (bare filename like new File("build.log")), which NPE'd. I only create the parent directories when a parent path exists, and added a unit test for the bare-filename case.

@elharo
elharo merged commit 19e1a75 into apache:master Sep 4, 2026
11 checks passed
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

@elharo Please assign appropriate label to PR according to the type of change.

@github-actions github-actions Bot added this to the 1.9 milestone Sep 4, 2026
@elharo elharo added the bug Something isn't working label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileLogger NPE when output file has no parent directory

2 participants