build graph: cleanup done amount if exception is thrown and logged (IDEA-112290)

This commit is contained in:
Anna Kozlova
2013-08-21 20:55:51 +04:00
parent ac9c969832
commit c94daa81ff
@@ -401,7 +401,13 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
InspectionToolPresentation toolPresentation = getPresentation(toolWrapper);
try {
if (tool.isGraphNeeded()) {
((RefManagerImpl)getRefManager()).findAllDeclarations();
try {
((RefManagerImpl)getRefManager()).findAllDeclarations();
}
catch (Throwable e) {
getStdJobDescriptors().BUILD_GRAPH.setDoneAmount(0);
throw e;
}
}
tool.runInspection(scope, inspectionManager, this, toolPresentation);
if (tool.queryExternalUsagesRequests(inspectionManager, this, toolPresentation)) {