From b83ac78952e28746cabd56d8f2e3e036046c9748 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hypki Date: Tue, 16 May 2023 17:05:15 +0200 Subject: [PATCH] Zaktualizuj 'chess-match/src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java' Fix NullPtrEx --- .../src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess-match/src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java b/chess-match/src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java index 913630a..efec9b5 100644 --- a/chess-match/src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java +++ b/chess-match/src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java @@ -11,7 +11,7 @@ public class ChessMatchMain { String nextMove = null; while (true) { - nextMove = student1White.nextMove(null); + nextMove = student1White.nextMove(nextMove); if (nextMove == null) break;