Skip to content

Commit

Permalink
fix(Timeline/Hashtag): check if hashtag is null
Browse files Browse the repository at this point in the history
Fixes a crash when clicking on hashtags in profiles, since the hashtag
is for some reason null.
  • Loading branch information
FineFindus committed Sep 9, 2024
1 parent f30e12f commit 08542cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ private void createOptionsMenu(){
followMenuItem=optionsMenu.findItem(R.id.follow_hashtag);
pinMenuItem=optionsMenu.findItem(R.id.pin);
followMenuItem.setVisible(toolbarContentVisible);
updateFollowState(hashtag.following);
updateFollowState(hashtag!=null && hashtag.following);
// pinMenuItem.setShowAsAction(toolbarContentVisible ? MenuItem.SHOW_AS_ACTION_NEVER : MenuItem.SHOW_AS_ACTION_ALWAYS);
super.updatePinButton(pinMenuItem);

Expand Down

0 comments on commit 08542cd

Please sign in to comment.