From 554a01a42075ad03b4e60f885a2c831c8e0792a0 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Fri, 2 Jul 2010 10:32:47 +0000 Subject: [PATCH] https://issues.apache.org/activemq/browse/AMQ-2728 - fix getDestination() problem git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@959942 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/web/MessageServletSupport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 23f9311b00..7d3b58ba8c 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 @@ -305,7 +305,9 @@ public abstract class MessageServletSupport extends HttpServlet { } else { isTopic = isTopic(request); } - destinationName = destinationName.substring(destinationName.indexOf("://") + 3); + if (destinationName.indexOf("://") != -1) { + destinationName = destinationName.substring(destinationName.indexOf("://") + 3); + } if (destinationOptions != null) { destinationName += "?" + destinationOptions;