From 649b009d58695aced1f23b191870f2aeb9a7a0a0 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 13 Mar 2019 16:14:14 -0500 Subject: [PATCH] Fix crash when google task list already deleted --- .../java/com/todoroo/astrid/gtasks/api/GtasksInvoker.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/todoroo/astrid/gtasks/api/GtasksInvoker.java b/app/src/main/java/com/todoroo/astrid/gtasks/api/GtasksInvoker.java index 35d7ae84d..7f8de1418 100644 --- a/app/src/main/java/com/todoroo/astrid/gtasks/api/GtasksInvoker.java +++ b/app/src/main/java/com/todoroo/astrid/gtasks/api/GtasksInvoker.java @@ -81,7 +81,10 @@ public class GtasksInvoker { } public void deleteGtaskList(String listId) throws IOException { - execute(service.tasklists().delete(listId)); + try { + execute(service.tasklists().delete(listId)); + } catch (HttpNotFoundException ignored) { + } } public TaskList renameGtaskList(String listId, String title) throws IOException { @@ -96,7 +99,6 @@ public class GtasksInvoker { try { execute(service.tasks().delete(listId, taskId)); } catch (HttpNotFoundException ignored) { - } }