1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 03:57:58 +01:00

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

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. // The room has been destroyed.
if (destroy != null) { if (destroy != null) {
EntityBareJid alternateMucJid = destroy.getJid(); EntityBareJid alternateMucJid = destroy.getJid();