mirror of
https://github.com/moparisthebest/fernflower
synced 2024-11-22 09:12:17 -05:00
java-decompiler: NPE in test fixture; diagnostic
This commit is contained in:
parent
e74977d467
commit
69dc786510
@ -33,7 +33,7 @@ public class DecompilerTestFixture {
|
|||||||
testDataDir = new File("testData");
|
testDataDir = new File("testData");
|
||||||
if (!isTestDataDir(testDataDir)) testDataDir = new File("community/plugins/java-decompiler/engine/testData");
|
if (!isTestDataDir(testDataDir)) testDataDir = new File("community/plugins/java-decompiler/engine/testData");
|
||||||
if (!isTestDataDir(testDataDir)) testDataDir = new File("plugins/java-decompiler/engine/testData");
|
if (!isTestDataDir(testDataDir)) testDataDir = new File("plugins/java-decompiler/engine/testData");
|
||||||
assertTrue(isTestDataDir(testDataDir));
|
assertTrue("current dir: " + new File("").getAbsolutePath(), isTestDataDir(testDataDir));
|
||||||
|
|
||||||
//noinspection SSBasedInspection
|
//noinspection SSBasedInspection
|
||||||
tempDir = File.createTempFile("decompiler_test_", "_dir");
|
tempDir = File.createTempFile("decompiler_test_", "_dir");
|
||||||
@ -51,8 +51,10 @@ public class DecompilerTestFixture {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void tearDown() {
|
public void tearDown() {
|
||||||
|
if (tempDir != null) {
|
||||||
delete(tempDir);
|
delete(tempDir);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public File getTestDataDir() {
|
public File getTestDataDir() {
|
||||||
return testDataDir;
|
return testDataDir;
|
||||||
|
Loading…
Reference in New Issue
Block a user