summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-06-28 11:35:59 +0000
committerRafael H. Schloming <rhs@apache.org>2010-06-28 11:35:59 +0000
commite101ebbecc91cd469728626576fe7ff0b3cc5775 (patch)
treee2282499f4e7172001bdc0f51927a978882eec9f /python
parent289b269c6ff1f05f6891a9e4ebd85960d606d9b1 (diff)
downloadqpid-python-e101ebbecc91cd469728626576fe7ff0b3cc5775.tar.gz
fix mangling for addresses that are None
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@958547 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/messaging/endpoints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py
index 8bddc96bc8..62423ca7d5 100644
--- a/python/qpid/messaging/endpoints.py
+++ b/python/qpid/messaging/endpoints.py
@@ -710,7 +710,7 @@ class Session:
self.connection._remove_session(self)
def _mangle(addr):
- if addr.startswith("#"):
+ if addr and addr.startswith("#"):
return str(uuid4()) + addr
else:
return addr