Эх сурвалжийг харах

Merge pull request #11566 from nextcloud/nmc/accountSetupBindingNull

Handling account setup binding null.
Tobias Kaminsky 2 жил өмнө
parent
commit
b45dbbd553

+ 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 {