Fixes dependency propagation of exceptions

This commit is contained in:
konsoletyper 2014-03-02 10:05:56 +04:00
parent 8541e40f36
commit 04de57627f

View File

@ -84,7 +84,7 @@ class DependencyGraphBuilder {
if (tryCatch.getExceptionType() != null) { if (tryCatch.getExceptionType() != null) {
exceptions[i] = dependencyChecker.getClassSource().get(tryCatch.getExceptionType()); exceptions[i] = dependencyChecker.getClassSource().get(tryCatch.getExceptionType());
} }
vars[i] = methodDep.getVariable(i); vars[i] = methodDep.getVariable(tryCatch.getExceptionVariable().getIndex());
} }
return new ExceptionConsumer(dependencyChecker, exceptions, vars, methodDep); return new ExceptionConsumer(dependencyChecker, exceptions, vars, methodDep);
} }