aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-02-19 20:49:20 +0100
committerChristian Schneppe <christian@pix-art.de>2018-02-19 20:49:20 +0100
commit6c65bb9334673d5821ebc489287c5e6a74bdd328 (patch)
treed658153afd9b446ff130b8bd9fcf4c0696ca2dcd
parent81c6addd594b562008fbc8137dbd152168530227 (diff)
don't delete account if it's not yet created - fixes crash
-rw-r--r--src/main/java/de/pixart/messenger/ui/EditAccountActivity.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
index 24218be4e..c94ceb44b 100644
--- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
@@ -326,7 +326,6 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
xmppConnectionService.deleteAccount(mAccount);
}
if (xmppConnectionService.getAccounts().size() == 0) {
- xmppConnectionService.deleteAccount(mAccount);
Intent intent = new Intent(EditAccountActivity.this, WelcomeActivity.class);
WelcomeActivity.addInviteUri(intent, getIntent());
startActivity(intent);