Merge pull request #546 from bgrozev/fix-npe-when-missing-x

Add null check for mucUser.
This commit is contained in:
Florian Schmaus 2023-03-17 17:45:43 +01:00 committed by GitHub
commit d93fbacc35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();