Merge pull request #6858 from nextcloud/fixAccountWarning

Fix crashing app when adding same account for second time when using qrCode
This commit is contained in:
Tobias Kaminsky 2020-09-02 13:37:36 +02:00 committed by GitHub
commit 1381f594f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1132,7 +1132,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
}
} else {
// init webView again
mLoginWebView.setVisibility(View.GONE);
if (mLoginWebView != null) {
mLoginWebView.setVisibility(View.GONE);
}
setContentView(R.layout.account_setup);
initOverallUi();