소스 검색

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;