INT-3908: Fix NPE in the AbstractAggrMGProcessor
JIRA: https://jira.spring.io/browse/INT-3908 **Cherry-pick to ALL**
This commit is contained in:
committed by
Gary Russell
parent
4606954cd2
commit
88eb7894de
@@ -74,11 +74,14 @@ public abstract class AbstractAggregatingMessageGroupProcessor implements Messag
|
||||
if (!aggregatedHeaders.containsKey(key)) {
|
||||
aggregatedHeaders.put(key, value);
|
||||
}
|
||||
else if (!value.equals(aggregatedHeaders.get(key))) {
|
||||
else {
|
||||
Object existingValue = aggregatedHeaders.get(key);
|
||||
if (value != existingValue && (value == null || !value.equals(existingValue))) {
|
||||
conflictKeys.add(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (String keyToRemove : conflictKeys) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Excluding header '" + keyToRemove + "' upon aggregation due to conflict(s) "
|
||||
|
||||
Reference in New Issue
Block a user