git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@959942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-07-02 10:32:47 +00:00
parent f7c3c11cc4
commit 554a01a420
1 changed files with 3 additions and 1 deletions

View File

@ -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;