Fixed crashes in comments fragments

pull/14/head
Sam Bosley 12 years ago
parent d4ea1d7487
commit 75c97450a1

@ -100,7 +100,7 @@ public class TagCommentsFragment extends CommentsFragment {
@Override @Override
protected boolean canLoadMoreHistory() { protected boolean canLoadMoreHistory() {
return tagData.getValue(TagData.HISTORY_HAS_MORE) > 0; return hasModel() && tagData.getValue(TagData.HISTORY_HAS_MORE) > 0;
} }
@Override @Override

@ -88,7 +88,7 @@ public class TaskCommentsFragment extends CommentsFragment {
@Override @Override
protected boolean canLoadMoreHistory() { protected boolean canLoadMoreHistory() {
return task.getValue(Task.HISTORY_HAS_MORE) > 0; return hasModel() && task.getValue(Task.HISTORY_HAS_MORE) > 0;
} }
@Override @Override

Loading…
Cancel
Save