diff --git a/Outlook2013TodoAddIn/AppointmentsControl.cs b/Outlook2013TodoAddIn/AppointmentsControl.cs index 94290d4..249e673 100644 --- a/Outlook2013TodoAddIn/AppointmentsControl.cs +++ b/Outlook2013TodoAddIn/AppointmentsControl.cs @@ -241,7 +241,14 @@ namespace Outlook2013TodoAddIn List tasks = new List(); foreach (object item in todoFolder.Items) { - tasks.Add(new OLTaskItem(item)); + try + { + tasks.Add(new OLTaskItem(item)); + } + catch + { + // Do nothing, probably the task had already been deleted + } } return tasks.Where(t => t.ValidTaskItem).ToList(); // Filter out invalid ones }