aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-06-01 21:20:25 +0200
committerChristian Schneppe <christian@pix-art.de>2018-06-01 21:20:25 +0200
commit0ae1f7ce7a78ae4bac3f77c8ce807056515316b7 (patch)
tree5776f3dfaf180ceeb63168af7806a0d1e6de823f /src/main/java/de/pixart/messenger/ui
parenta6207e7b144733d67519d7539e1c33501258f64f (diff)
catch NPE
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/EditAccountActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
index 7a5210e8f..9333b13b4 100644
--- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
@@ -431,8 +431,8 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
}
protected void updateInfoButtons() {
- if (this.binding.accountRegisterNew.isChecked()) {
- if (!mUsernameMode && Jid.ofEscaped(this.binding.accountJid.getText()).getDomain().toLowerCase().equals("pix-art.de")) {
+ if (this.binding.accountRegisterNew.isChecked() && this.binding.accountJid.getText().length() > 0) {
+ if (!mUsernameMode && Jid.of(this.binding.accountJid.getText()).getDomain().toLowerCase().equals("pix-art.de")) {
this.binding.showPrivacyPolicy.setVisibility(View.VISIBLE);
this.binding.showTermsOfUse.setVisibility(View.VISIBLE);
}