iterate over entry-set in getFaultDefinition (#1396)

This commit is contained in:
hduelme
2023-12-12 13:56:46 +01:00
committed by GitHub
parent a2822a2b11
commit d219e2d9ff

View File

@@ -58,11 +58,11 @@ public class SoapFaultMappingExceptionResolver extends AbstractSoapFaultDefiniti
if (!CollectionUtils.isEmpty(exceptionMappings)) {
String definitionText = null;
int deepest = Integer.MAX_VALUE;
for (String exceptionMapping : exceptionMappings.keySet()) {
int depth = getDepth(exceptionMapping, ex);
for (Map.Entry<String, String> exceptionMapping : exceptionMappings.entrySet()) {
int depth = getDepth(exceptionMapping.getKey(), ex);
if (depth >= 0 && depth < deepest) {
deepest = depth;
definitionText = exceptionMappings.get(exceptionMapping);
definitionText = exceptionMapping.getValue();
}
}
if (definitionText != null) {