don’t crash when attempting to publish bookmarks while offline
This commit is contained in:
parent
52c0bf73a0
commit
1cfba86aff
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue