mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests: recover after an exception during light project initialization
This commit is contained in:
@@ -302,7 +302,13 @@ public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
|
||||
}
|
||||
|
||||
ProjectManagerEx projectManagerEx = ProjectManagerEx.getInstanceEx();
|
||||
projectManagerEx.openTestProject(ourProject);
|
||||
try {
|
||||
projectManagerEx.openTestProject(ourProject);
|
||||
}
|
||||
catch (Throwable e) {
|
||||
ourProject = null;
|
||||
throw e;
|
||||
}
|
||||
if (reusedProject) {
|
||||
DumbService.getInstance(ourProject).queueTask(new UnindexedFilesUpdater(ourProject));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user