You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
containsKey with a null parameter is quite likely to cause an NullpointerException on a TreeMap (e.g. no specific comperator supporting null keys is set. See TreeMap::containsKey)
TestMDCAdapter::setContextMap throws a NullpointerException when a TreeMap is used as a parameter.
I think it is caused by this line:
https://github.com/valfirst/slf4j-test/blob/139d72855228aabfe1d64f52ee42e0ddd061757b/src/main/java/com/github/valfirst/slf4jtest/TestMDCAdapter.java#L132C16-L132C16
containsKey with a null parameter is quite likely to cause an NullpointerException on a TreeMap (e.g. no specific comperator supporting null keys is set. See TreeMap::containsKey)
Source of that TreeMap could be TestMDCAdapter::getCopyOfContextMap.
UnitTest to validate:
The text was updated successfully, but these errors were encountered: