Buggy code:
public class TagViewActivity extends TaskListActivity { 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_SYNC_ID ; private static final int REQUEST_CODE_SETTINGS = 0 ; public static final String TOKEN_START_ACTIVITY = "startActivity" ; private TagData tagData ; @ Autowired TagDataService tagDataService ; @ Autowired ActFmSyncService actFmSyncService ; @ Autowired ActFmPreferenceService actFmPreferenceService ; private 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 ) { } @ Override protected void onNewIntent ( Intent intent ) { } @ Override public void loadTaskListContent ( boolean requery ) { } private void refreshData ( final boolean manual , boolean bypassTagShow ) { } private void setUpMembersGallery ( ) { LinearLayout membersView = ( ( LinearLayout ) ( getView ( ) . findViewById ( shared_with ) ) ) ; membersView . setOnClickListener ( settingsListener ) ; try { String membersString = tagData . getValue ( MEMBERS ) ; JSONArray members = new JSONArray ( membersString ) ; if ( ( members . length ( ) ) > 0 ) { membersView . setOnClickListener ( null ) ; membersView . removeAllViews ( ) ; for ( int i = 0 ; i < ( members . length ( ) ) ; i ++ ) { JSONObject member = members . getJSONObject ( i ) ; addImageForMember ( membersView , member ) ; } if ( ( tagData . getValue ( USER_ID ) ) != 0 ) { JSONObject owner = new JSONObject ( tagData . getValue ( USER ) ) ; addImageForMember ( membersView , owner ) ; } } } catch ( JSONException e ) { e . printStackTrace ( ) ; } <START_BUG> getActivity ( ) . findViewById ( filter_assigned ) . setOnClickListener ( new OnClickListener ( ) { <END_BUG> @ Override public void onClick ( View v ) { resetAssignedFilter ( ) ; } } ) ; } @ SuppressWarnings ( "nls" ) private void addImageForMember ( LinearLayout membersView , JSONObject member ) { } @ SuppressWarnings ( "unused" ) private OnClickListener listenerForImage ( final JSONObject member , final long id , final String displayName ) { } @ Override protected Intent getOnClickQuickAddIntent ( Task t ) { } @ Override protected Intent getOnLongClickQuickAddIntent ( 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 protected Task quickAddTask ( String title , boolean selectNewTask ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
getView ( ) . findViewById ( filter_assigned ) . setOnClickListener ( new OnClickListener ( ) {