mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-25 12:08:00 +01:00
Add null check for mucUser.
XEP-0045 requires "unavailable" presence to contain extended presence, but Smack shouldn't throw an exception if it doesn't.
This commit is contained in:
parent
5295a856e4
commit
6da9773bbf
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ public class MultiUserChat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Destroy destroy = mucUser.getDestroy();
|
Destroy destroy = mucUser == null ? null : mucUser.getDestroy();
|
||||||
// The room has been destroyed.
|
// The room has been destroyed.
|
||||||
if (destroy != null) {
|
if (destroy != null) {
|
||||||
EntityBareJid alternateMucJid = destroy.getJid();
|
EntityBareJid alternateMucJid = destroy.getJid();
|
||||||
|
|
Loading…
Reference in a new issue