don’t crash when attempting to publish bookmarks while offline

This commit is contained in:
Daniel Gultsch 2019-06-16 18:05:06 +02:00
parent 52c0bf73a0
commit 1cfba86aff
1 changed files with 2 additions and 1 deletions

View File

@ -1559,7 +1559,8 @@ public class XmppConnectionService extends Service {
} }
public void pushBookmarks(Account account) { public void pushBookmarks(Account account) {
if (account.getXmppConnection().getFeatures().bookmarksConversion()) { final XmppConnection connection = account.getXmppConnection();
if (connection != null && connection.getFeatures().bookmarksConversion()) {
pushBookmarksPep(account); pushBookmarksPep(account);
} else { } else {
pushBookmarksPrivateXml(account); pushBookmarksPrivateXml(account);