mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-10-31 17:25:58 +01:00
Fixed another possible null case.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7083 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
1303db9703
commit
5d30c8ac26
1 changed files with 7 additions and 1 deletions
|
@ -488,7 +488,13 @@ public class Roster implements ConnectionListener {
|
||||||
return new Presence(Presence.Type.unavailable);
|
return new Presence(Presence.Type.unavailable);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return userPresences.get(resource);
|
Presence presence = userPresences.get(resource);
|
||||||
|
if (presence == null) {
|
||||||
|
return new Presence(Presence.Type.unavailable);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return presence;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue