Skip to content

Commit 7621cc7

Browse files
committed
Remove ISE in ResourceUrlProvider
Issue: SPR-12630
1 parent 2c1682a commit 7621cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public final String getForLookupPath(String lookupPath) {
208208
ResourceResolverChain chain = new DefaultResourceResolverChain(handler.getResourceResolvers());
209209
String resolved = chain.resolveUrlPath(pathWithinMapping, handler.getLocations());
210210
if (resolved == null) {
211-
throw new IllegalStateException("Failed to get public resource URL path for " + pathWithinMapping);
211+
continue;
212212
}
213213
if (logger.isTraceEnabled()) {
214214
logger.trace("Resolved public resource URL path=\"" + resolved + "\"");

0 commit comments

Comments
 (0)