diff --git a/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java b/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java index e1595ea6bdc..08165eb0cd3 100644 --- a/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java +++ b/web/src/main/java/org/springframework/security/web/savedrequest/SimpleSavedRequest.java @@ -126,7 +126,7 @@ public void setHeaders(Map> headers) { } public void setLocales(List locales) { - Assert.notNull("locales cannot be null"); + Assert.notNull(locales, "locales cannot be null"); this.locales = locales; }