I’'m currently working on MyOwnMessenger again. The thing is that I want to know what presence everyone in my roster has.
But it is somewhat confusing. What does roster.getPresence require for param? It says a String user. But is that the JID?
Then I’'ve got a problem.
Presence presence = roster.getPresence(entry.getUser());
Gives a nullpointer problem. entry is a RosterEntry, and the user really exists.
Am I doing something wrong?