Skip to content

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
@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