File tree 1 file changed +1
-7
lines changed
spring-messaging/src/main/java/org/springframework/messaging/simp/broker
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 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.
@@ -223,12 +223,6 @@ protected void handleMessageInternal(Message<?> message) {
223
223
return ;
224
224
}
225
225
226
- SimpMessageHeaderAccessor accessor = MessageHeaderAccessor .getAccessor (message , SimpMessageHeaderAccessor .class );
227
- if (accessor == null ) {
228
- throw new IllegalStateException (
229
- "No header accessor (not using the SimpMessagingTemplate?): " + message );
230
- }
231
-
232
226
if (SimpMessageType .MESSAGE .equals (messageType )) {
233
227
logMessage (message );
234
228
sendMessageToSubscribers (destination , message );
You can’t perform that action at this time.
0 commit comments