File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
spring-messaging/src/main/java/org/springframework/messaging/support Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -76,11 +76,13 @@ public void setInterceptors(List<ChannelInterceptor> interceptors) {
76
76
77
77
@ Override
78
78
public void addInterceptor (ChannelInterceptor interceptor ) {
79
+ Assert .notNull (interceptor , "ChannelInterceptor must not be null" );
79
80
this .interceptors .add (interceptor );
80
81
}
81
82
82
83
@ Override
83
84
public void addInterceptor (int index , ChannelInterceptor interceptor ) {
85
+ Assert .notNull (interceptor , "ChannelInterceptor must not be null" );
84
86
this .interceptors .add (index , interceptor );
85
87
}
86
88
You can’t perform that action at this time.
0 commit comments