Null pointer check

pull/14/head
Sam Bosley 12 years ago
parent 4b68f23833
commit 4c8424cd72

@ -1063,7 +1063,7 @@ public class TaskListFragment extends SherlockListFragment implements OnSortSele
public void reconstructCursor() { public void reconstructCursor() {
TodorooCursor<Task> cursor = constructCursor(); TodorooCursor<Task> cursor = constructCursor();
if (cursor == null) if (cursor == null || taskAdapter == null)
return; return;
taskAdapter.changeCursor(cursor); taskAdapter.changeCursor(cursor);
} }

Loading…
Cancel
Save