diff --git a/org.springframework.integration.http/src/main/java/org/springframework/integration/http/DefaultOutboundRequestMapper.java b/org.springframework.integration.http/src/main/java/org/springframework/integration/http/DefaultOutboundRequestMapper.java index 0a57d0da9e..447b112f03 100644 --- a/org.springframework.integration.http/src/main/java/org/springframework/integration/http/DefaultOutboundRequestMapper.java +++ b/org.springframework.integration.http/src/main/java/org/springframework/integration/http/DefaultOutboundRequestMapper.java @@ -159,7 +159,7 @@ public class DefaultOutboundRequestMapper implements OutboundRequestMapper { for (Map.Entry entry : parameterMap.entrySet()) { String[] values = entry.getValue(); for (String value : values) { - char lastChar = urlString.charAt(urlString.length() -1); + char lastChar = sb.charAt(sb.length() -1); if (lastChar != '?' && lastChar != '&') { sb.append('&'); }