From d53a616e20494ceb0e5bdd1dc02b40282b6a77dc Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 17 Jun 2019 21:32:42 +0200 Subject: =?UTF-8?q?don=E2=80=99t=20crash=20when=20attempting=20to=20publis?= =?UTF-8?q?h=20bookmarks=20while=20offline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') 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(); -- cgit v1.2.3