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:
Boris Grozev 2023-01-30 11:19:58 -06:00
parent 5295a856e4
commit 6da9773bbf
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ public class MultiUserChat {
}
}
Destroy destroy = mucUser.getDestroy();
Destroy destroy = mucUser == null ? null : mucUser.getDestroy();
// The room has been destroyed.
if (destroy != null) {
EntityBareJid alternateMucJid = destroy.getJid();