From e526d5e1647db23bc01c8d49d17488f3b1a89616 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 9 Mar 2017 15:06:44 +0100 Subject: [PATCH] [updater] finds a nearest candidate for move, fixed again (IDEA-CR-19029) --- updater/src/com/intellij/updater/DiffCalculator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/updater/src/com/intellij/updater/DiffCalculator.java b/updater/src/com/intellij/updater/DiffCalculator.java index 60f576283ec8..a08a663c6025 100644 --- a/updater/src/com/intellij/updater/DiffCalculator.java +++ b/updater/src/com/intellij/updater/DiffCalculator.java @@ -112,9 +112,7 @@ public class DiffCalculator { } } - if (best.isEmpty()) throw new AssertionError("Failed to find a candidate for '" + path + "' in " + paths); - - return best; + return !best.isEmpty() ? best : null; } public static Map> groupFilesByContent(Map map) {