From aaaaf1d8060e370d412c5933cc34b5bfa7f624a6 Mon Sep 17 00:00:00 2001 From: asvitkine Date: Wed, 25 May 2022 11:31:41 -0400 Subject: [PATCH] Fix an NPE with user action attachments introduced by recent refactoring. (#10503) --- .../strategy/triplea/attachments/UserActionAttachment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-app/game-core/src/main/java/games/strategy/triplea/attachments/UserActionAttachment.java b/game-app/game-core/src/main/java/games/strategy/triplea/attachments/UserActionAttachment.java index 25361e5b27..0be0a59ee0 100644 --- a/game-app/game-core/src/main/java/games/strategy/triplea/attachments/UserActionAttachment.java +++ b/game-app/game-core/src/main/java/games/strategy/triplea/attachments/UserActionAttachment.java @@ -160,7 +160,7 @@ public static void fireTriggers( public Set getOtherPlayers() { final Set otherPlayers = new HashSet<>(); otherPlayers.add((GamePlayer) this.getAttachedTo()); - otherPlayers.addAll(actionAccept); + otherPlayers.addAll(getActionAccept()); return otherPlayers; }