mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish WebJarsResourceResolver
Fix a potential NPE when trying to resolve non-existing webjars resources in the resolver chain.
This commit is contained in:
+1
@@ -107,6 +107,7 @@ public class WebJarsResourceResolverTests {
|
||||
|
||||
assertNull(actual);
|
||||
verify(this.chain, times(1)).resolveUrlPath(file, this.locations);
|
||||
verify(this.chain, never()).resolveUrlPath(null, this.locations);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user