Author: clebert.suconic(a)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))
Show replies by date