fix NPE when bookmark jid is null on creating suggestions

This commit is contained in:
Daniel Gultsch 2017-06-01 16:44:35 +02:00
parent 3889c0eb01
commit ed7882fe69

View File

@ -3506,7 +3506,8 @@ public class XmppConnectionService extends Service {
mucServers.add(server);
}
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)) {
mucServers.add(s);
}