Buggy code:
public class TagFilterExposer extends BroadcastReceiver implements AstridFilterExposer { private static final String TAG = "tag" ; @ Autowired TagDataService tagDataService ; @ Autowired GtasksPreferenceService gtasksPreferenceService ; @ SuppressWarnings ( "nls" ) public static FilterWithCustomIntent filterFromTag ( Context context , Tag tag , Criterion criterion ) { String title = tag . tag ; QueryTemplate tagTemplate = tag . queryTemplate ( criterion ) ; ContentValues contentValues = new ContentValues ( ) ; contentValues . put ( name , KEY ) ; contentValues . put ( TagService . TAG . name , tag . tag ) ; FilterWithUpdate filter = new FilterWithUpdate ( tag . tag , title , tagTemplate , contentValues ) ; if ( ( tag . remoteId ) > 0 ) { filter . listingTitle += ( "<seq2seq4repair_space>(" + ( tag . count ) ) + ")" ; if ( ( tag . count ) == 0 ) filter . color = Color . GRAY ; } <START_BUG> TagData tagData = PluginServices . getTagDataService ( ) . getTag ( tag . tag , ID , MEMBER_COUNT ) ; <END_BUG> int deleteIntentLabel ; if ( ( ( tagData . getValue ( MEMBER_COUNT ) ) > 0 ) && ( ( tagData . getValue ( USER_ID ) ) != 0 ) ) deleteIntentLabel = string . tag_cm_leave ; else deleteIntentLabel = string . tag_cm_delete ; filter . contextMenuLabels = new String [ ] { context . getString ( tag_cm_rename ) , context . getString ( deleteIntentLabel ) } ; filter . contextMenuIntents = new Intent [ ] { TagFilterExposer . newTagIntent ( context , TagFilterExposer . RenameTagActivity . class , tag ) , TagFilterExposer . newTagIntent ( context , TagFilterExposer . DeleteTagActivity . class , tag ) } ; filter . customTaskList = new android . content . ComponentName ( ContextManager . getContext ( ) , TagViewFragment . class ) ; if ( ( tag . image ) != null ) filter . imageUrl = tag . image ; if ( ( tag . updateText ) != null ) filter . updateText = tag . updateText ; Bundle extras = new Bundle ( ) ; extras . putString ( EXTRA_TAG_NAME , tag . tag ) ; extras . putLong ( EXTRA_TAG_REMOTE_ID , tag . remoteId ) ; extras . putBoolean ( TOKEN_OVERRIDE_ANIM , true ) ; filter . customExtras = extras ; return filter ; } public static Filter filterFromTagData ( Context context , TagData tagData ) { } private static Intent newTagIntent ( Context context , Class < ? extends Activity > activity , Tag tag ) { } @ Override public void onReceive ( Context context , Intent intent ) { } private FilterListItem [ ] prepareFilters ( Context context ) { } private void addTags ( ArrayList < FilterListItem > list ) { } private FilterCategory filterFromTags ( Tag [ ] tags , int name ) { } public static abstract class TagActivity extends Activity { protected String tag ; @ Autowired public TagService tagService ; @ Autowired public TagDataService tagDataService ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } protected OnClickListener getOkListener ( ) { } protected OnClickListener getCancelListener ( ) { } private void toastNoChanges ( ) { } protected abstract void showDialog ( TagData tagData ) { } protected abstract boolean ok ( ) { } } public static class DeleteTagActivity extends TagFilterExposer . TagActivity { @ Override protected void showDialog ( TagData tagData ) { } @ Override protected boolean ok ( ) { } } public static class RenameTagActivity extends TagFilterExposer . TagActivity { private EditText editor ; @ Override protected void showDialog ( TagData tagData ) { } @ Override protected boolean ok ( ) { } } @ Override public FilterListItem [ ] getFilters ( ) { } }

Fix:
TagData tagData = PluginServices . getTagDataService ( ) . getTag ( tag . tag , ID , USER_ID , MEMBER_COUNT ) ;