Skip to content

Commit 9fd7b63

Browse files
committed
add req non null
1 parent 7070263 commit 9fd7b63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ch/epfl/chacun/gui/PlayersUI.java

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import java.util.ArrayList;
1515
import java.util.List;
1616
import java.util.Map;
17+
import java.util.Objects;
1718

1819
/**
1920
* This class represents the graphical representation
@@ -54,6 +55,7 @@ private PlayersUI() {
5455
*/
5556
public static Node create(ObservableValue<GameState> gameStateO, TextMaker textMaker) {
5657

58+
Objects.requireNonNull(textMaker);
5759
ObservableValue<Map<PlayerColor, Integer>> pointsO = gameStateO.map(gState -> gState.messageBoard().points());
5860

5961
// create a new vbox that will be used to align elements (like players)

0 commit comments

Comments
 (0)