players) {
...
Participant partner = players.stream()
.filter(p -> !participant.getId().equals(p.getId())
&& p.getCurrentPartner() == null
&& (!participant.getPlayedPartnersIds().contains(p.getId())))
.findAny()
.orElse(null);
...
}
It produces NPE. Where do I make a fackup?
Debug it. Imho NPEs are the easiest to debug.. :D
Обсуждают сегодня