1
0
Fork 0
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:
Boris Grozev 2023-01-30 11:19:58 -06:00
parent 5295a856e4
commit 6da9773bbf

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();