SPRNET-1485 added check for null param in CachedSession.CreateProducer(IDestination) call

This commit is contained in:
Steve Bohlen
2012-04-17 21:13:57 -04:00
parent 1793d6c818
commit 008d3f4145

View File

@@ -129,6 +129,8 @@ namespace Spring.Messaging.Nms.Connections
/// <returns>A message producer.</returns>
public IMessageProducer CreateProducer(IDestination destination)
{
AssertUtils.ArgumentNotNull(destination,"destination");
if (shouldCacheProducers)
{
IMessageProducer producer = (IMessageProducer)cachedProducers[destination];