We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1abcba commit 0720f9eCopy full SHA for 0720f9e
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
@@ -588,7 +588,7 @@ private static String prefixWithSlash(String path) {
588
589
private static List<Element> prependWithSeparator(List<Element> elements) {
590
List<Element> result = new ArrayList<>(elements);
591
- if (!(result.get(0) instanceof Separator)) {
+ if (result.isEmpty() || !(result.get(0) instanceof Separator)) {
592
result.add(0, SEPARATOR);
593
}
594
return Collections.unmodifiableList(result);
0 commit comments