Fixed a couple rare null pointers

pull/14/head
Sam Bosley 13 years ago
parent 529bb2fcba
commit d42471a5f6

@ -255,7 +255,8 @@ public class TagViewFragment extends TaskListFragment {
} }
TaskListActivity tla = (TaskListActivity) getActivity(); TaskListActivity tla = (TaskListActivity) getActivity();
tla.setCommentsCount(unreadCount); if (tla != null)
tla.setCommentsCount(unreadCount);
} }
} }

@ -714,7 +714,8 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
* broadcast. Subclasses should override this. * broadcast. Subclasses should override this.
*/ */
protected void refresh() { protected void refresh() {
taskAdapter.flushCaches(); if (taskAdapter != null)
taskAdapter.flushCaches();
loadTaskListContent(true); loadTaskListContent(true);
taskService.cleanup(); taskService.cleanup();
} }

Loading…
Cancel
Save