瀏覽代碼

mHostUrlInput can be null if used with direct login

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 年之前
父節點
當前提交
ad5160dadb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 3 - 1
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;