garydgregory commented on code in PR #815:
URL: https://github.com/apache/logging-log4j2/pull/815#discussion_r845558255
##########
log4j-api/src/main/java/org/apache/logging/log4j/Level.java:
##########
@@ -276,9 +283,13 @@ public static Level forName(final String name, final int
intValue) {
*
* @param name The name of the Level.
* @return The Level or null.
+ * @throws java.lang.IllegalArgumentException if the name is null.
*/
public static Level getLevel(final String name) {
- return LEVELS.get(name);
+ if (name == null) {
Review Comment:
See comment above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]