Skip to content

Commit d219e2d

Browse files
authored
iterate over entry-set in getFaultDefinition (#1396)
1 parent a2822a2 commit d219e2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ws-core/src/main/java/org/springframework/ws/soap/server/endpoint/SoapFaultMappingExceptionResolver.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ protected SoapFaultDefinition getFaultDefinition(Object endpoint, Exception ex)
5858
if (!CollectionUtils.isEmpty(exceptionMappings)) {
5959
String definitionText = null;
6060
int deepest = Integer.MAX_VALUE;
61-
for (String exceptionMapping : exceptionMappings.keySet()) {
62-
int depth = getDepth(exceptionMapping, ex);
61+
for (Map.Entry<String, String> exceptionMapping : exceptionMappings.entrySet()) {
62+
int depth = getDepth(exceptionMapping.getKey(), ex);
6363
if (depth >= 0 && depth < deepest) {
6464
deepest = depth;
65-
definitionText = exceptionMappings.get(exceptionMapping);
65+
definitionText = exceptionMapping.getValue();
6666
}
6767
}
6868
if (definitionText != null) {

0 commit comments

Comments
 (0)