diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java index d147132a50a..e36c08c5905 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java @@ -104,7 +104,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator implements H * for serving static resources. */ public void setLocations(List locations) { - Assert.notEmpty(locations, "Locations list must not be empty"); + Assert.notNull(locations, "Locations list must not be null"); this.locations.clear(); this.locations.addAll(locations); }