Zaktualizuj 'chess-match/src/main/java/net/hypki/wmi/oop/chess/ChessMatchMain.java'

Fix NullPtrEx
This commit is contained in:
Arkadiusz Hypki 2023-05-16 17:05:15 +02:00
parent f2ab9db116
commit b83ac78952
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ public class ChessMatchMain {
String nextMove = null;
while (true) {
nextMove = student1White.nextMove(null);
nextMove = student1White.nextMove(nextMove);
if (nextMove == null)
break;