Polish WebJarsResourceResolver
Fix a potential NPE when trying to resolve non-existing webjars resources in the resolver chain.
This commit is contained in:
@@ -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