Prevent crash

This commit is contained in:
M66B
2022-04-23 09:56:48 +02:00
parent 2d57e07682
commit 13773c97c7
8 changed files with 27 additions and 0 deletions

View File

@@ -304,6 +304,9 @@ public class FragmentIdentity extends FragmentBase {
@Override
public void afterTextChanged(Editable editable) {
if (etDomain == null)
return;
String[] email = editable.toString().split("@");
etDomain.setText(email.length < 2 ? null : email[1]);
}
@@ -324,6 +327,9 @@ public class FragmentIdentity extends FragmentBase {
@Override
public void afterTextChanged(Editable s) {
if (tilPassword == null)
return;
checkPassword(s.toString());
}
});