activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1081697 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/DestinationPathSeparatorBroker.java
Date Tue, 15 Mar 2011 09:39:47 GMT
Author: dejanb
Date: Tue Mar 15 09:39:47 2011
New Revision: 1081697

URL: http://svn.apache.org/viewvc?rev=1081697&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3204 - adding additional null check

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/DestinationPathSeparatorBroker.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/DestinationPathSeparatorBroker.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/DestinationPathSeparatorBroker.java?rev=1081697&r1=1081696&r2=1081697&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/DestinationPathSeparatorBroker.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/DestinationPathSeparatorBroker.java
Tue Mar 15 09:39:47 2011
@@ -39,7 +39,7 @@ public class DestinationPathSeparatorBro
     String pathSeparator = "/";
 
     protected ActiveMQDestination convertDestination(ActiveMQDestination destination) {
-        if (destination.getPhysicalName().contains(pathSeparator)) {
+        if (destination != null && destination.getPhysicalName().contains(pathSeparator))
{
             List<String> l = new ArrayList<String>();
             StringTokenizer iter = new StringTokenizer(destination.getPhysicalName(), pathSeparator);
             while (iter.hasMoreTokens()) {



Mime
View raw message