From 05bf6a19f341e2b2cb2b107dea65660a08439a1c Mon Sep 17 00:00:00 2001 From: sowgro Date: Mon, 10 Nov 2025 15:29:14 -0500 Subject: fix circular dependency --- src/main/java/design/model/Golfer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/design/model/Golfer.java') diff --git a/src/main/java/design/model/Golfer.java b/src/main/java/design/model/Golfer.java index 77f411f..960568f 100644 --- a/src/main/java/design/model/Golfer.java +++ b/src/main/java/design/model/Golfer.java @@ -26,7 +26,7 @@ public class Golfer { this.courses = courses; this.rounds = rounds; this.clubs = clubs; - this.invites = invites; + this.invites = invites != null ? invites : new ArrayList<>(); this.nextClubId = this.clubs.stream().mapToInt(Club::getId).max().orElse(0) + 1; } -- cgit v1.2.3