Small improvement

This commit is contained in:
M66B 2022-10-18 20:34:07 +02:00
parent be80970bac
commit d89b3edc73
1 changed files with 7 additions and 2 deletions

View File

@ -497,8 +497,13 @@ public class FragmentOAuth extends FragmentBase {
cbUpdate.setEnabled(true);
AuthorizationResponse auth = AuthorizationResponse.fromIntent(data);
if (auth == null)
throw AuthorizationException.fromIntent(data);
if (auth == null) {
AuthorizationException ex = AuthorizationException.fromIntent(data);
if (ex == null)
throw new IllegalArgumentException("No response data");
else
throw ex;
}
final EmailProvider provider = EmailProvider.getProvider(getContext(), auth.state);