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(); TaskListActivity tla = (TaskListActivity) getActivity();
if (tla != null)
tla.setCommentsCount(unreadCount); tla.setCommentsCount(unreadCount);
} }
} }

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

Loading…
Cancel
Save