Handle no auth token

This commit is contained in:
M66B 2019-05-10 17:35:47 +02:00
parent 7533fc067c
commit 09d21c070b
1 changed files with 2 additions and 0 deletions

View File

@ -1045,6 +1045,8 @@ public class Helper {
Log.i("Refreshing token");
am.invalidateAuthToken(type, current);
String refreshed = am.blockingGetAuthToken(account, getAuthTokenType(type), true);
if (refreshed == null)
throw new OperationCanceledException("no token");
Log.i("Refreshed token");
return refreshed;
}