кажется нашел баг! if(waitingEmployees.contains(name)){ alreadyGotSalaryEmployees.add(name); waitingEmployees.set(1, null); }