1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-02 06:45:59 +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) {
PrivateDataManager privateDataManager = instances.get(connection);
if (connection == null) {
if (privateDataManager == null) {
privateDataManager = new PrivateDataManager(connection);
}
return privateDataManager;