[updater] finds a nearest candidate for move, fixed again (IDEA-CR-19029)

This commit is contained in:
Roman Shevchenko
2017-03-09 15:07:02 +01:00
parent d440f2176d
commit e526d5e164
@@ -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<Long, List<String>> groupFilesByContent(Map<String, Long> map) {