소스 검색

Merge pull request #11566 from nextcloud/nmc/accountSetupBindingNull

Handling account setup binding null.
Tobias Kaminsky 2 년 전
부모
커밋
b45dbbd553
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      app/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 4 - 0
app/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -5,9 +5,11 @@
  * @author David A. Velasco
  * @author masensio
  * @author Mario Danic
+ * @author TSI-mc
  * Copyright (C) 2012  Bartek Przybylski
  * Copyright (C) 2015 ownCloud Inc.
  * Copyright (C) 2017 Mario Danic
+ * Copyright (C) 2023 TSI-mc
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2,
@@ -1379,6 +1381,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
      * server.
      */
     private void showServerStatus() {
+        if (accountSetupBinding == null) return;
+
         if (mServerStatusIcon == NO_ICON && EMPTY_STRING.equals(mServerStatusText)) {
             accountSetupBinding.serverStatusText.setVisibility(View.INVISIBLE);
         } else {