activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r959942 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
Date Fri, 02 Jul 2010 10:32:47 GMT
Author: dejanb
Date: Fri Jul  2 10:32:47 2010
New Revision: 959942

URL: http://svn.apache.org/viewvc?rev=959942&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2728 - fix getDestination() problem

Modified:
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java?rev=959942&r1=959941&r2=959942&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
Fri Jul  2 10:32:47 2010
@@ -305,7 +305,9 @@ public abstract class MessageServletSupp
         } 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;



Mime
View raw message