瀏覽代碼

mHostUrlInput can be null if used with direct login (#4270)

mHostUrlInput can be null if used with direct login
Tobias Kaminsky 5 年之前
父節點
當前提交
0938d81c73
共有 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;