diff options
author | Pacien TRAN-GIRARD | 2016-04-08 18:38:49 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-08 18:38:49 +0200 |
commit | db4143daf935741628144b9d82ed7612df7930d7 (patch) | |
tree | d2d07b03c890af3bf163ef3b3fa978e318c0df95 /src | |
parent | dd61695d96c0fbcc136e8e061a46f189484b3aec (diff) | |
download | xblast-db4143daf935741628144b9d82ed7612df7930d7.tar.gz |
Suppress optional null get warning
Diffstat (limited to 'src')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
548 | 548 | ||
549 | return this.currentPlayerPriorityOrder().stream() | 549 | return this.currentPlayerPriorityOrder().stream() |
550 | .filter(claimants::contains) | 550 | .filter(claimants::contains) |
551 | .findFirst().get(); | 551 | .findFirst().orElse(null); |
552 | } | 552 | } |
553 | 553 | ||
554 | /** | 554 | /** |