mHostUrlInput can be null if used with direct login

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-07-26 14:31:50 +02:00
parent e382365c0e
commit ad5160dadb
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -505,7 +505,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
if (loginUrlInfo != null) {
try {
if (mHostUrlInput != null) {
mHostUrlInput.setText("");
}
mServerInfo.mBaseUrl = AuthenticatorUrlUtils.normalizeUrlSuffix(loginUrlInfo.serverAddress);
webViewUser = loginUrlInfo.username;
webViewPassword = loginUrlInfo.password;