mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Small improvement
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user