[hornetq-commits] JBoss hornetq SVN: r10780 - branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Jun 6 22:24:54 EDT 2011
Author: clebert.suconic at jboss.com
Date: 2011-06-06 22:24:54 -0400 (Mon, 06 Jun 2011)
New Revision: 10780
Modified:
branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/impl/HornetQServerImpl.java
Log:
avoiding NPE
Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/impl/HornetQServerImpl.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/impl/HornetQServerImpl.java 2011-06-07 01:55:44 UTC (rev 10779)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/impl/HornetQServerImpl.java 2011-06-07 02:24:54 UTC (rev 10780)
@@ -1032,6 +1032,11 @@
{
Binding binding = postOffice.getBinding(queueName);
+ if (binding == null)
+ {
+ return null;
+ }
+
Bindable queue = binding.getBindable();
if (!(queue instanceof Queue))
More information about the hornetq-commits
mailing list