Exception during Retrieving of ToDo.DUE Property Value (IndexOutOfBoundsException)

If you get IndexOutOfBoundsException during retrieving of ToDo.DUE property value, check before it has a value. Wrong : lngEnd = _SourceContext.getDate(BlackBerryToDo.DUE, 0); Correct : if (todo.countValues(BlackBerryToDo.DUE) > 0) { lngEnd = todo.getDate(BlackBerryToDo.DUE, 0); } This is because if ToDo has no Due date (I mean, selected ‘ None ‘ value), you can take IndexOutOfBoundsException error. Check …

Read More Exception during Retrieving of ToDo.DUE Property Value (IndexOutOfBoundsException)