Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Check value instead of name for not null when collecting MDC entries
Browse files Browse the repository at this point in the history
  • Loading branch information
jhorstmann authored Nov 1, 2018
1 parent 3a38caa commit 2bdbb32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private Values getMdcValues(DynamicMdcMessageField field) {

for (String mdcName : matchingMdcNames) {
String mdcValue = getMdcValue(mdcName);
if (mdcName != null) {
if (mdcValue != null) {
result.setValue(mdcName, mdcValue);
}
}
Expand Down

0 comments on commit 2bdbb32

Please sign in to comment.