Buggy code:
public class TagViewFragment extends TaskListFragment { private static final String LAST_FETCH_KEY = "tag-fetch-" ; public static final String BROADCAST_TAG_ACTIVITY = ( AstridApiConstants . PACKAGE ) + ".TAG_ACTIVITY" ; public static final String EXTRA_TAG_NAME = "tag" ; public static final String EXTRA_TAG_REMOTE_ID = "remoteId" ; public static final String EXTRA_TAG_DATA = "tagData" ; protected static final int MENU_REFRESH_ID = ( MENU_SUPPORT_ID ) + 1 ; private static final int REQUEST_CODE_SETTINGS = 0 ; public static final String TOKEN_START_ACTIVITY = "startActivity" ; protected TagData tagData ; @ Autowired TagDataService tagDataService ; @ Autowired ActFmSyncService actFmSyncService ; @ Autowired ActFmPreferenceService actFmPreferenceService ; @ Autowired SyncV2Service syncService ; protected View taskListView ; private boolean dataLoaded = false ; private long currentId ; private Filter originalFilter ; @ Override public void onActivityCreated ( final Bundle savedInstanceState ) { } private final OnClickListener settingsListener = new OnClickListener ( ) { @ Override public void onClick ( View v ) { } } ; @ Override protected View getListBody ( ViewGroup root ) { } private void showListSettingsPopover ( ) { } @ Override protected void addSyncRefreshMenuItem ( Menu menu , int themeFlags ) { if ( actFmPreferenceService . isLoggedIn ( ) ) { <START_BUG> addMenuItem ( menu , actfm_TVA_menu_refresh , ThemeService . getDrawable ( icn_menu_refresh , themeFlags ) , TagViewFragment . MENU_REFRESH_ID , false ) ; <END_BUG> } else { super . addSyncRefreshMenuItem ( menu , themeFlags ) ; } } @ Override protected void onNewIntent ( Intent intent ) { } protected void postLoadTagData ( ) { } @ Override public TagData getActiveTagData ( ) { } @ Override public void loadTaskListContent ( boolean requery ) { } private void updateCommentCount ( ) { } @ Override protected void initiateAutomaticSync ( ) { } private void refreshData ( final boolean manual ) { } private void setUpMembersGallery ( ) { } @ SuppressWarnings ( "nls" ) private void addImageForMember ( LinearLayout membersView , JSONObject member ) { } private OnClickListener listenerForImage ( final JSONObject member , final long id , final String displayName ) { } @ Override protected Intent getOnClickQuickAddIntent ( Task t ) { } private void resetAssignedFilter ( ) { } @ SuppressWarnings ( "nls" ) private String displayName ( JSONObject user ) { } private final BroadcastReceiver notifyReceiver = new BroadcastReceiver ( ) { @ SuppressWarnings ( "nls" ) @ Override public void onReceive ( Context context , Intent intent ) { } } ; @ Override public void onResume ( ) { } @ Override public void onPause ( ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean handleOptionsMenuItemSelected ( int id , Intent intent ) { } @ Override protected boolean hasDraggableOption ( ) { } @ Override protected void toggleDragDrop ( boolean newState ) { } @ Override protected void refresh ( ) { } }

Fix:
addMenuItem ( menu , actfm_TVA_menu_refresh , ThemeService . getDrawable ( icn_menu_refresh , themeFlags ) , TagViewFragment . MENU_REFRESH_ID , true ) ;