From 6fa2cbee68fc9e7be8ed902596bd3cadc9423153 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 31 Oct 2013 20:24:02 +0000 Subject: [PATCH] SMACK-459 actually add the defaultIdentity to the result of getIdentities() git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13796 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/ServiceDiscoveryManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java index 688f9a3a6..2b4f23f5b 100644 --- a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java +++ b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java @@ -187,7 +187,10 @@ public class ServiceDiscoveryManager { * @return */ public Set getIdentities() { - return Collections.unmodifiableSet(identities); + Set res = new HashSet(identities); + // Add the default identity that must exist + res.add(defaultIdentity); + return res; } /**