From db4143daf935741628144b9d82ed7612df7930d7 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Fri, 8 Apr 2016 18:38:49 +0200 Subject: Suppress optional null get warning --- src/ch/epfl/xblast/server/GameState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ch') diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 0d381db..fefaf02 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java @@ -548,7 +548,7 @@ public final class GameState { return this.currentPlayerPriorityOrder().stream() .filter(claimants::contains) - .findFirst().get(); + .findFirst().orElse(null); } /** -- cgit v1.2.3