From 026b3ca9f02481a91dccd1d07be242f729003e8f Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 20 Apr 2019 11:05:37 +0200 Subject: [PATCH] Remove incorrect null check. The check for move == null in DroidFish.movePlayed() is wrong because this case happens if the computer move is a draw claim involving a move to be played but not actually being played. --- .../src/main/java/org/petero/droidfish/DroidFish.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java index a8cda98..be8ea19 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java @@ -3887,11 +3887,6 @@ public class DroidFish extends Activity @Override public void movePlayed(Position pos, Move move, boolean computerMove) { - if (move == null) { - DroidFishApp.toast(R.string.engine_error, Toast.LENGTH_SHORT); - newGameMode(GameMode.EDIT_GAME); - return; - } if ("sound".equals(moveAnnounceType)) { if (computerMove) { if (moveSound != null)