don't report exception if trying to update jar to the same file (this can happen if the version of the plugin is different from the version of the runtime it bundles; in that case, we've already messed up and there is no value in spamming EA with exceptions) (EA-73451 - IAE: KotlinRuntimeLibraryUtil.replaceFile)

This commit is contained in:
Dmitry Jemerov
2015-09-29 14:44:32 +02:00
parent 5c93e25e67
commit 49eace61c9
@@ -256,7 +256,7 @@ public class KotlinRuntimeLibraryUtil {
File libraryJarPath = new File(localPath);
if (FileUtil.filesEqual(updatedFile, libraryJarPath)) {
throw new IllegalArgumentException("Shouldn't be called for updating same file: " + updatedFile);
return;
}
FileUtil.copy(updatedFile, libraryJarPath);