I have a weird problem with getting the type or mode of a presence object.
I’'m using JBuilder 6 and when I get to the line where I get the type or mode, it skips it and gets out of the function and out of my while block, like it encountered some error.
The problem occurs at these lines:
Presence.Mode mode = roster.getPresence(user).getMode();.
user is just a string of a JID which I checked and it’'s written fine, and p is a Presence object.
I know I’'m supposed to get null but it just acts like it has some kind of a porblem getting the type/mode.
I also tried to add roster.reload(); and waited for like 5 seconds before getting the roster like it was said in previous threads here, but no luck.
What am I doing wrong?
I tried everything, if someone knows what’‘s the solution please tell me what it is, it’'s very important.
Message was edited by: yossi1771