Skip to content

Commit

Permalink
fix for a crash on misconfigured server
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Apr 29, 2023
1 parent b368105 commit c467a6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private String validateCredential(LoginActivity parent, @Nullable String method)
private void clickRequest(View button) {
final LoginActivity parent = (LoginActivity) requireActivity();

String method = mCredMethods[0];
String method = mCredMethods != null && mCredMethods.length > 0 ? mCredMethods[0] : null;
final String value = validateCredential(parent, method);
if (TextUtils.isEmpty(value)) {
return;
Expand Down

0 comments on commit c467a6d

Please sign in to comment.