Check for null on the argument instead of the message

See gh-1307
Issue: SPR-15196
This commit is contained in:
Ruben Dijkstra
2017-01-27 13:29:42 +01:00
committed by Stephane Nicoll
parent 944d17f237
commit f1c7e0f5b2
9 changed files with 11 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ public class JmsMessagingTemplate extends AbstractMessagingTemplate<Destination>
* Create a {@code JmsMessagingTemplate} instance with the {@link JmsTemplate} to use.
*/
public JmsMessagingTemplate(JmsTemplate jmsTemplate) {
Assert.notNull("JmsTemplate must not be null");
Assert.notNull(jmsTemplate, "JmsTemplate must not be null");
this.jmsTemplate = jmsTemplate;
}