Buggy code:
public class Events extends Activity { private ListView list ; private PopupWindow popUp ; private List < Event > events = null ; private ArrayList < Event > arrayEvent = new ArrayList < Event > ( ) ; private ArrayList < String > body = new ArrayList < String > ( ) ; private ListenableFuture < List < Event > > even = null ; private BodyType typ = BodyType . Text ; private ArrayAdapter < String > myAdapter ; private ArrayList < String > array = new ArrayList < String > ( ) ; private ArrayList < String > id = new ArrayList < String > ( ) ; protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; ActionBar bar = getActionBar ( ) ; bar . setBackgroundDrawable ( new android . graphics . drawable . ColorDrawable ( Color . parseColor ( "#0c2f51" ) ) ) ; setContentView ( activity_events ) ; Button j = ( ( Button ) ( findViewById ( newEvent ) ) ) ; TextView k = ( ( TextView ) ( findViewById ( event ) ) ) ; Bundle get = getIntent ( ) . getExtras ( ) ; String dat = get . getString ( "variable" ) ; array = get . getStringArrayList ( "title" ) ; body = get . getStringArrayList ( "body" ) ; list = ( ( ListView ) ( findViewById ( lost ) ) ) ; ArrayList < Event > s = new ArrayList < Event > ( ) ; try { SimpleDateFormat sdf = new SimpleDateFormat ( "d-M-yyyy" ) ; String date ; final Singleton singleton = Singleton . getInstance ( ) ; events = singleton . getEvent ( ) ; for ( Event e : events ) { e . getBody ( ) . setContentType ( typ ) ; if ( ! ( e . getIsAllDay ( ) ) ) { date = sdf . format ( e . getStart ( ) . getTime ( ) ) ; if ( ( date . compareTo ( dat ) ) == 0 ) { String a = ( e . getSubject ( ) ) + "\n" ; array . add ( a ) ; body . add ( e . getBody ( ) . getContent ( ) ) ; arrayEvent . add ( e ) ; <START_BUG> break ; <END_BUG> } } date = sdf . format ( e . getEnd ( ) . getTime ( ) ) ; if ( ( date . compareTo ( dat ) ) == 0 ) { String a = ( e . getSubject ( ) ) + "\n" ; array . add ( a ) ; body . add ( e . getBody ( ) . getContent ( ) ) ; arrayEvent . add ( e ) ; } } myAdapter = new ArrayAdapter < String > ( this , layout . simple_list_item_1 , array ) ; list . setAdapter ( myAdapter ) ; myAdapter . notifyDataSetChanged ( ) ; list . setFocusable ( false ) ; list . setDescendantFocusability ( FOCUS_BLOCK_DESCENDANTS ) ; list . setOnItemClickListener ( new OnItemClickListener ( ) { @ Override public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { LayoutInflater inflater = ( ( LayoutInflater ) ( getSystemService ( LAYOUT_INFLATER_SERVICE ) ) ) ; View layout = inflater . inflate ( popup , ( ( ViewGroup ) ( findViewById ( PopLayoutID ) ) ) ) ; popUp = new PopupWindow ( layout , 1000 , 1200 , true ) ; popUp . showAtLocation ( layout , CENTER , 0 , 0 ) ; popUp . setFocusable ( true ) ; Button PopCan = ( ( Button ) ( layout . findViewById ( PopupButton ) ) ) ; TextView tex = ( ( TextView ) ( layout . findViewById ( popupText ) ) ) ; Button Del = ( ( Button ) ( layout . findViewById ( DeleteButton ) ) ) ; ListView popList = ( ( ListView ) ( layout . findViewById ( PopupList ) ) ) ; ArrayList < String > showThis = new ArrayList < String > ( ) ; showThis . add ( ( "Title:<seq2seq4repair_space>" + ( arrayEvent . get ( position ) . getSubject ( ) ) ) ) ; showThis . add ( ( "Time:<seq2seq4repair_space>" + ( arrayEvent . get ( position ) . getDateTimeCreated ( ) . getTime ( ) ) ) ) ; showThis . add ( "Body" ) ; ArrayAdapter < String > popUpAdapter = new ArrayAdapter < String > ( Events . this , layout . simple_list_item_1 , showThis ) ; popUpAdapter . notifyDataSetChanged ( ) ; popList . setAdapter ( popUpAdapter ) ; tex . setText ( arrayEvent . get ( position ) . getBodyPreview ( ) ) ; final int w = position ; Del . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { List < Event > remove = new ArrayList < Event > ( ) ; String id = arrayEvent . get ( w ) . getId ( ) ; OutlookClient cl = singleton . getClient ( ) ; cl . getMe ( ) . getEvents ( ) . getById ( id ) . delete ( ) ; for ( Event a : events ) { if ( ( arrayEvent . get ( w ) . getId ( ) ) == ( a . getId ( ) ) ) { remove . add ( a ) ; } } events . removeAll ( remove ) ; singleton . setEvent ( events ) ; arrayEvent . remove ( w ) ; array . remove ( w ) ; change ( ) ; popUp . dismiss ( ) ; } } ) ;

Fix:
continue ;