-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
AsyncWaitStrategyFactoryConfig - potential NPE when creating programatically #3159
Comments
@ppkarwasz I am not sure why the bot didn't mark this as "waiting for maintainer" - not sure if it pops up for you? |
I am seriously considering deprecating The presence of both a Log4j configuration property and a direct child of |
You are a |
…'factoryClassName' (apache#3159)
@ppkarwasz - recreated the PR based on current code base |
AsyncWaitStrategyFactoryConfig (Log4j 2.24.1)
This
@Plugin
doesn't behave like most others where if the configuration is invalid, it will return anull
from the Builder.The
@PluginBuilderAttribute
factoryClassName
(for the XMLclass
attribute) is marked as@Required
, but if creating programatically the missing value is not checked and the constructor will throw a NPE.Typical behaviour here would be to return
null
from thebuild()
method if misconfigured.Builder#withFactoryClassName(...)
method might be sensible.The text was updated successfully, but these errors were encountered: