Buggy code:
public class BackgroundService extends Service { String longText = "You<seq2seq4repair_space>met<seq2seq4repair_space>someone!" ; String shortText = "You<seq2seq4repair_space>met<seq2seq4repair_space>someone!" ; String notiTitle = "Army<seq2seq4repair_space>of<seq2seq4repair_space>Friends" ; String fightAction = "Fight!" ; String armyAction = "Your<seq2seq4repair_space>Army" ; String yourProfile = "Your<seq2seq4repair_space>Profile" ; private long currentTime ; DbHelper dbHelper ; DbFight dbFight ; GameMechanics gameMechanics ; UserProfile userProfile ; List < DbSoldier > dbSoldiers ; ParseDb parseDb ; Calendar cur_cal = Calendar . getInstance ( ) ; public static int counter = 0 ; public static final String LOCATION = "location" ; public static final String LATITUDE = "latitude" ; public static final String LONGITUDE = "longitude" ; public static final String BROADCAST_ACTION = "com.pemws14.armyoffriends" ; public static final String USER_COUNT = "usercount" ; public ParseObject TestUser ; public ParseGeoPoint UserLocation ; public ParseGeoPoint TestUserLocation ; public ArrayList < ParseGeoPoint > UserLocList ; public int numberUsers ; public ParseUser currentUser ; public ParseQuery < ParseObject > armyStrengthQuery ; public ParseObject ArmyStrength ; int armyStrength ; int defaultPlayerLevel = 1 ; int defaultEP = 0 ; boolean armyExist ; @ Override public int onStartCommand ( Intent intent , int flags , int startId ) { } @ Override public IBinder onBind ( Intent intent ) { } public void onCreate ( ) { } @ Override public void onDestroy ( ) { } public void onTaskRemoved ( Intent rootIntent ) { } public void sendLocResult ( Location location , int UserNum ) { } public void getNearbyUsers ( ParseGeoPoint geoPoint , Location location ) { } public void saveArmyStuff ( ) { } protected void displayNotification ( ) { } public void meet ( List < ParseUser > parseUsers ) { System . out . println ( "meet" ) ; List < ParseUser > listParseUser = parseDb . getMetPeopleToday ( ) ; System . out . println ( ( "List<seq2seq4repair_space>ParseUser,<seq2seq4repair_space>heute<seq2seq4repair_space>schon<seq2seq4repair_space>getroffene<seq2seq4repair_space>User:<seq2seq4repair_space>" + listParseUser ) ) ; if ( parseUsers != null ) { System . out . println ( ( "Meet<seq2seq4repair_space>Success!<seq2seq4repair_space>Retrieved<seq2seq4repair_space>parseUsers:<seq2seq4repair_space>" + parseUsers ) ) ; numberUsers = parseUsers . toArray ( ) . length ; System . out . println ( ( "Success!<seq2seq4repair_space>Number<seq2seq4repair_space>Users:<seq2seq4repair_space>" + ( numberUsers ) ) ) ; <START_BUG> if ( listParseUser == null ) { <END_BUG> for ( ParseUser parseUser : parseUsers ) { System . out . println ( ( ( ( ( "CurrentUser:<seq2seq4repair_space>" + ( currentUser ) ) + "<seq2seq4repair_space>hat<seq2seq4repair_space>User:<seq2seq4repair_space>" ) + parseUser ) + "<seq2seq4repair_space>heute<seq2seq4repair_space>zum<seq2seq4repair_space>ERSTEN<seq2seq4repair_space>MAL<seq2seq4repair_space>getroffen!<seq2seq4repair_space>(Hatte<seq2seq4repair_space>noch<seq2seq4repair_space>niemanden<seq2seq4repair_space>getroffen)" ) ) ; displayNotification ( ) ; ParseUser pu = parseUser ; System . out . println ( ( ( ( ( "currentUser:<seq2seq4repair_space>" + ( currentUser ) ) + "<seq2seq4repair_space>hat<seq2seq4repair_space>User:<seq2seq4repair_space>" ) + pu ) + "<seq2seq4repair_space>hinzugefügt!" ) ) ; addSoldier ( pu ) ; } } else { int k = listParseUser . toArray ( ) . length ; for ( ParseUser parseUser : parseUsers ) { for ( ParseUser parseUser2 : listParseUser ) { int loopCount = 0 ; if ( parseUser . hasSameId ( parseUser2 ) ) { loopCount = 0 ; System . out . println ( ( ( ( ( "CurrentUser:<seq2seq4repair_space>" + ( currentUser ) ) + "<seq2seq4repair_space>hat<seq2seq4repair_space>User:<seq2seq4repair_space>" ) + parseUser ) + "<seq2seq4repair_space>heute<seq2seq4repair_space>leider<seq2seq4repair_space>schon<seq2seq4repair_space>getroffen!" ) ) ; break ; } else { loopCount ++ ; if ( loopCount == k ) { loopCount = 0 ; System . out . println ( ( ( ( ( "CurrentUser:<seq2seq4repair_space>" + ( currentUser ) ) + "<seq2seq4repair_space>hat<seq2seq4repair_space>User:<seq2seq4repair_space>" ) + parseUser ) + "<seq2seq4repair_space>heute<seq2seq4repair_space>zum<seq2seq4repair_space>ERSTEN<seq2seq4repair_space>MAL<seq2seq4repair_space>getroffen!<seq2seq4repair_space>(hat<seq2seq4repair_space>aber<seq2seq4repair_space>schon<seq2seq4repair_space>andere<seq2seq4repair_space>getroffen)" ) ) ; displayNotification ( ) ; ParseUser pu = parseUser ; System . out . println ( ( ( ( ( "currentUser:<seq2seq4repair_space>" + ( currentUser ) ) + "<seq2seq4repair_space>hat<seq2seq4repair_space>User:<seq2seq4repair_space>" ) + pu ) + "<seq2seq4repair_space>hinzugefügt!" ) ) ; addSoldier ( pu ) ; } } } } } } else { System . out . println ( "leider<seq2seq4repair_space>niemanden<seq2seq4repair_space>getroffen!" ) ; } } public void addSoldier ( ParseUser parseUser ) { } public void createFightEntry ( DbSoldier dbSoldier ) { } }

Fix:
if ( ( listParseUser . size ( ) ) == 0 ) {