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

View File

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