Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE in PatternProcessor for the UNIX pattern #2350

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Mar 5, 2024

Closes #2346.

The constructor of PatternProcessor fails if the date pattern is UNIX and UNIX_MILLIS: DatePatterConverter#getPattern() returns intentionally null in those cases.

@ppkarwasz ppkarwasz requested a review from vy March 5, 2024 12:43
@ppkarwasz ppkarwasz added this to the 2.23.1 milestone Mar 5, 2024
@ppkarwasz ppkarwasz force-pushed the fix/2346_unix_millis_date_pattern branch from 48ebcf9 to 7aa0277 Compare March 5, 2024 13:31
@vy vy added bug Incorrect, unexpected, or unintended behavior of existing code appenders Affects one or more Appender plugins appenders:Rolling Affects log file rolling functionality and removed appenders Affects one or more Appender plugins labels Mar 6, 2024
Closes 2346.

The constructor of `PatternProcessor` fails if the date pattern is
`UNIX` and `UNIX_MILLIS`: `DatePatterConverter#getPattern()` returns
intentionally `null` in those cases.
@ppkarwasz ppkarwasz force-pushed the fix/2346_unix_millis_date_pattern branch from 7aa0277 to 054a4f7 Compare March 6, 2024 08:03
@ppkarwasz ppkarwasz merged commit 054a4f7 into 2.x Mar 6, 2024
5 of 6 checks passed
@ppkarwasz ppkarwasz deleted the fix/2346_unix_millis_date_pattern branch March 6, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appenders:Rolling Affects log file rolling functionality bug Incorrect, unexpected, or unintended behavior of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE in PatternProcessor when using a UNIX_MILLIS date pattern
2 participants