Null pointer check when deleting task
Null pointer check when clicking list view
Minor memory optimization