mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +01:00
Fix PrivateDataManager getInstanceFor() always returns null
This commit is contained in:
parent
075308a7cd
commit
865168688d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue