From ad5160dadb8c62589fbaf3ee6fe56e47cad16ff4 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 26 Jul 2019 14:31:50 +0200 Subject: [PATCH] mHostUrlInput can be null if used with direct login Signed-off-by: tobiasKaminsky --- .../android/authentication/AuthenticatorActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java index 39e1168fe9..976f2fad4d 100644 --- a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -505,7 +505,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity if (loginUrlInfo != null) { try { - mHostUrlInput.setText(""); + if (mHostUrlInput != null) { + mHostUrlInput.setText(""); + } mServerInfo.mBaseUrl = AuthenticatorUrlUtils.normalizeUrlSuffix(loginUrlInfo.serverAddress); webViewUser = loginUrlInfo.username; webViewPassword = loginUrlInfo.password;