1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

[muc] Check mucServicedDiscoInfo for null in serviceSupportsStableIds()

Fixes SMACK-913.
This commit is contained in:
Florian Schmaus 2021-09-27 13:56:15 +02:00
parent 49ad8c0954
commit ae4ff244a3

View file

@ -2558,7 +2558,7 @@ public class MultiUserChat {
}
public boolean serviceSupportsStableIds() {
return mucServiceDiscoInfo.containsFeature(MultiUserChatConstants.STABLE_ID_FEATURE);
return DiscoverInfo.nullSafeContainsFeature(mucServiceDiscoInfo, MultiUserChatConstants.STABLE_ID_FEATURE);
}
@Override