From 374971febe969b72b7684bb79e7b00384ed6d44c Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 5 Oct 2006 10:13:23 +0000 Subject: [PATCH] trim the string used to get the sequence id git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@453176 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/command/ActiveMQTempDestination.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java b/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java index ed756ac30f..d75b4f9c77 100755 --- a/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java +++ b/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java @@ -63,7 +63,7 @@ abstract public class ActiveMQTempDestination extends ActiveMQDestination { if( !isComposite() ) { // Parse off the sequenceId off the end. int p = this.physicalName.lastIndexOf(":"); - sequenceId = Integer.parseInt(this.physicalName.substring(p+1)); + sequenceId = Integer.parseInt(this.physicalName.substring(p+1).trim()); // The rest should be the connection id. connectionId = this.physicalName.substring(0,p); }