aboutsummaryrefslogtreecommitdiff
path: root/src/ch
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-04-08 18:38:49 +0200
committerPacien TRAN-GIRARD2016-04-08 18:38:49 +0200
commitdb4143daf935741628144b9d82ed7612df7930d7 (patch)
treed2d07b03c890af3bf163ef3b3fa978e318c0df95 /src/ch
parentdd61695d96c0fbcc136e8e061a46f189484b3aec (diff)
downloadxblast-db4143daf935741628144b9d82ed7612df7930d7.tar.gz
Suppress optional null get warning
Diffstat (limited to 'src/ch')
-rw-r--r--src/ch/epfl/xblast/server/GameState.java2
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 /**