Fix try..catch..finally when there is no exit from try block.

This commit is contained in:
Jindra Petřík
2021-02-06 13:57:49 +01:00
parent fa3b507a17
commit 32aa76f0f3

View File

@@ -811,7 +811,7 @@ public class AVM2Graph extends Graph {
for (int e : finnalysIndicesToBe) {
ABCException finallyExceptionToBe = body.exceptions[e];
if (catchedExceptions.isEmpty()) {
if (catchedExceptions.isEmpty() || outSideExceptionPart == null) {
//there's no exception, finally only
finallyIndex = e;
finallyException = finallyExceptionToBe;