Skip to content

Commit

Permalink
Fixing crash when viewing more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Apr 17, 2016
1 parent 5205c59 commit b2fa44b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,12 @@ public void onJsonParseStarted(final JsonValue value, final long timestamp, fina

String parentPostAuthor = null;

((SessionChangeListener)mActivity).onSessionChanged(
session,
SessionChangeListener.SessionChangeType.COMMENTS,
timestamp);
if(mActivity instanceof SessionChangeListener) {
((SessionChangeListener)mActivity).onSessionChanged(
session,
SessionChangeListener.SessionChangeType.COMMENTS,
timestamp);
}

final Integer minimumCommentScore = PrefsUtility.pref_behaviour_comment_min(
mContext,
Expand Down

0 comments on commit b2fa44b

Please sign in to comment.