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

NullPointerException in format method of console/jdk loggers #1403

Closed
simonbasle opened this issue Oct 22, 2018 · 0 comments
Closed

NullPointerException in format method of console/jdk loggers #1403

simonbasle opened this issue Oct 22, 2018 · 0 comments
Assignees
Labels
type/bug A general bug

Comments

@simonbasle
Copy link
Member

Expected behavior

Logging a message using a format with 2 placeholders should work.

Actual behavior

Logging a message using a format with 2 placeholders and at least one null value (or an equivalent, as long as the vararg is interpreted as a null-containing array) produces an NPE.

Steps to reproduce

Loggers.useConsoleLoggers();
Logger l = Loggers.getLogger("test");
l.info("test {} is {}", null, null);

Reactor Core version

3.1.10.RELEASE

@simonbasle simonbasle added the type/bug A general bug label Oct 22, 2018
@simonbasle simonbasle added this to the 3.1.11.RELEASE milestone Oct 22, 2018
@simonbasle simonbasle self-assigned this Oct 22, 2018
simonbasle added a commit that referenced this issue Oct 22, 2018
This commit fixes an NPE triggered by null parameters in format method
of the JDK and Console Logger variants.
simonbasle added a commit that referenced this issue Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant