Commit e967c2d5 authored by Dave Syer's avatar Dave Syer

Add exception with more helpful error message.

[#54676948] Filter registered twice
parent a602ce3f
......@@ -104,10 +104,12 @@ public abstract class RegistrationBean implements ServletContextInitializer {
* Configure registration base settings.
*/
protected void configure(Registration.Dynamic registration) {
Assert.state(registration != null,
"Registration is null. Was something already registered for name=["
+ this.name + "]?");
registration.setAsyncSupported(this.asyncSupported);
if (this.initParameters.size() > 0) {
registration.setInitParameters(this.initParameters);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment