mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
fixed another npe in hasBookmark
This commit is contained in:
parent
138345c5bf
commit
4a80914603
@ -372,8 +372,9 @@ public class Account extends AbstractEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasBookmarkFor(final Jid conferenceJid) {
|
public boolean hasBookmarkFor(final Jid conferenceJid) {
|
||||||
for (Bookmark bmark : this.bookmarks) {
|
for (Bookmark bookmark : this.bookmarks) {
|
||||||
if (bmark.getJid().equals(conferenceJid.toBareJid())) {
|
final Jid jid = bookmark.getJid();
|
||||||
|
if (jid != null && jid.equals(conferenceJid.toBareJid())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user