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) {
|
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);
|
||||||
|
|
Loading…
Reference in New Issue