aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-12-13 17:20:32 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-12-13 17:20:32 +0100
commit51f52022cb3b36735993cecdee4cdc14201f4428 (patch)
treea1625e8fc1cb82330f37c12cea18e17dbb3da02f
parentcffb75e456bef62c7f6cd02cc63b6282915d5297 (diff)
catch rare NPE while deleting bookmark
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
index 49e0e081f..580a61686 100644
--- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
@@ -422,9 +422,14 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
protected void deleteBookmark() {
final Account account = mConversation.getAccount();
final Bookmark bookmark = mConversation.getBookmark();
- bookmark.setConversation(null);
- xmppConnectionService.deleteBookmark(account, bookmark);
- updateView();
+ try {
+ bookmark.setConversation(null);
+ xmppConnectionService.deleteBookmark(account, bookmark);
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ updateView();
+ }
}
@Override