fix NPE when bookmark jid is null on creating suggestions
This commit is contained in:
parent
3889c0eb01
commit
ed7882fe69
|
@ -3506,7 +3506,8 @@ public class XmppConnectionService extends Service {
|
||||||
mucServers.add(server);
|
mucServers.add(server);
|
||||||
}
|
}
|
||||||
for(Bookmark bookmark : account.getBookmarks()) {
|
for(Bookmark bookmark : account.getBookmarks()) {
|
||||||
final String s = bookmark.getJid().getDomainpart();
|
final Jid jid = bookmark.getJid();
|
||||||
|
final String s = jid == null ? null : jid.getDomainpart();
|
||||||
if (s != null && !mucServers.contains(s)) {
|
if (s != null && !mucServers.contains(s)) {
|
||||||
mucServers.add(s);
|
mucServers.add(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue