Fixed a couple rare null pointers

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

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

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

Loading…
Cancel
Save