AndyScherzinger 7 년 전
부모
커밋
bca8c493ab
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 2 - 2
src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -1562,8 +1562,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
                 mServerStatusText = getResources().getString(R.string.auth_unknown_error_http_title);
                 break;
             case UNKNOWN_ERROR:
-                if (result.getException() != null && result.getException().getMessage() != null
-                        && !"".equals(result.getException().getMessage())) {
+                if (result.getException() != null &&
+                        !TextUtils.isEmpty(result.getException().getMessage())) {
                     mServerStatusText = getResources().getString(
                             R.string.auth_unknown_error_exception_title,
                             result.getException().getMessage()