Skip to content

Commit

Permalink
fix #1681: null check
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Jul 29, 2014
1 parent bfa0757 commit bcab081
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,9 @@ protected void onPostExecute(CommentList comments) {
}
mPullToRefreshHelper.setRefreshing(false);

if (isCancelled())
if (isCancelled()) {
return;
}

mCanLoadMoreComments = (comments != null && comments.size() > 0);

Expand All @@ -513,7 +514,7 @@ protected void onPostExecute(CommentList comments) {
return;
}
}
if (comments.size() > 0) {
if (comments != null && comments.size() > 0) {
getCommentAdapter().loadComments();
}
}
Expand Down

0 comments on commit bcab081

Please sign in to comment.