diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-06-01 21:20:25 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-06-01 21:20:25 +0200 |
commit | 0ae1f7ce7a78ae4bac3f77c8ce807056515316b7 (patch) | |
tree | 5776f3dfaf180ceeb63168af7806a0d1e6de823f /src/main/java/de/pixart | |
parent | a6207e7b144733d67519d7539e1c33501258f64f (diff) |
catch NPE
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/EditAccountActivity.java | 4 |
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); } |