1
0
mirror of https://github.com/etesync/android synced 2025-02-02 10:51:10 +00:00

Handle invalid account exception in the sync adapter service.

This commit is contained in:
Tom Hacohen 2017-02-14 15:29:49 +00:00
parent 81b927e7fb
commit c7d817dfe2

View File

@ -140,7 +140,7 @@ public abstract class SyncAdapterService extends Service {
dbHelper = new ServiceDB.OpenHelper(context);
}
void run() throws Exceptions.HttpException, Exceptions.IntegrityException {
void run() throws Exceptions.HttpException, Exceptions.IntegrityException, InvalidAccountException {
try {
@Cleanup SQLiteDatabase db = dbHelper.getWritableDatabase();
@ -178,10 +178,6 @@ public abstract class SyncAdapterService extends Service {
} finally {
db.endTransaction();
}
} catch (InvalidAccountException e) {
// FIXME: Do something
e.printStackTrace();
} finally {
dbHelper.close();
}