diff --git a/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java b/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java index 8431b9ba18..a9a57f7b58 100644 --- a/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java +++ b/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java @@ -199,6 +199,9 @@ public abstract class MessageServletSupport extends HttpServlet { } if (value instanceof String[]) { String text = ((String[]) value)[0]; + if (text == null) { + return null; + } return ActiveMQDestination.createDestination(text, ActiveMQDestination.QUEUE_TYPE); } return null;