mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3204 - adding additional null check
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1081697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3d61acf2b2
commit
2900806b9e
|
@ -39,7 +39,7 @@ public class DestinationPathSeparatorBroker extends BrokerPluginSupport {
|
|||
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()) {
|
||||
|
|
Loading…
Reference in New Issue