aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-06-17 21:32:42 +0200
committerChristian Schneppe <christian@pix-art.de>2019-06-17 21:32:42 +0200
commitd53a616e20494ceb0e5bdd1dc02b40282b6a77dc (patch)
tree0ef99b404796eb7c8a1e2ef6aa8fdd5b2f3ed8c2 /src/main/java/de
parent19d75a0e1c2a17f691bce1e461d8c52b7ea06434 (diff)
don’t crash when attempting to publish bookmarks while offline
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 408ad5a8f..e03250cb3 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -1753,7 +1753,8 @@ public class XmppConnectionService extends Service {
}
public void pushBookmarks(Account account) {
- if (account.getXmppConnection() != null && account.getXmppConnection().getFeatures().bookmarksConversion()) {
+ final XmppConnection connection = account.getXmppConnection();
+ if (connection != null && connection.getFeatures().bookmarksConversion()) {
new Thread(() -> pushBookmarksPep(account)).start();
} else {
new Thread(() -> pushBookmarksPrivateXml(account)).start();