gradle tests: don't fail with exceptions from tearDown() if real JDK wasn't found

This commit is contained in:
nik
2015-05-26 18:16:12 +03:00
parent 90713fd56b
commit 0caa80f24e
@@ -111,6 +111,11 @@ public abstract class GradleImportingTestCase extends ExternalSystemImportingTes
@Override
public void tearDown() throws Exception {
if (myJdkHome == null) {
//super.setUp() wasn't called
return;
}
try {
new WriteAction() {
@Override