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

View file

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