1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

Fix PrivateDataManager getInstanceFor() always returns null

This commit is contained in:
Florian Schmaus 2014-04-22 21:28:46 +02:00
parent 075308a7cd
commit 865168688d

View file

@ -60,7 +60,7 @@ public class PrivateDataManager extends Manager {
public static synchronized PrivateDataManager getInstanceFor(XMPPConnection connection) { public static synchronized PrivateDataManager getInstanceFor(XMPPConnection connection) {
PrivateDataManager privateDataManager = instances.get(connection); PrivateDataManager privateDataManager = instances.get(connection);
if (connection == null) { if (privateDataManager == null) {
privateDataManager = new PrivateDataManager(connection); privateDataManager = new PrivateDataManager(connection);
} }
return privateDataManager; return privateDataManager;