Null pointer check when deleting task

pull/14/head
Sam Bosley 12 years ago
parent e58298ccd8
commit d043e5d77b

@ -1358,6 +1358,7 @@ public class TaskListFragment extends SherlockListFragment implements OnScrollLi
case CONTEXT_MENU_DELETE_TASK_ID: {
itemId = item.getGroupId();
Task task = taskService.fetchById(itemId, Task.ID, Task.UUID);
if (task != null)
deleteTask(task);
return true;
}

Loading…
Cancel
Save