mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
handle unresolvable catch types more appropriately when unwinding
This commit is contained in:
parent
6b0792c881
commit
38a982c7dd
@ -2154,9 +2154,14 @@ run(Thread* t)
|
||||
|
||||
PROTECT(t, eht);
|
||||
catchType = resolveClass(t, catchType);
|
||||
eh = exceptionHandlerTableBody(t, eht, i);
|
||||
|
||||
exception = e;
|
||||
if (catchType) {
|
||||
eh = exceptionHandlerTableBody(t, eht, i);
|
||||
exception = e;
|
||||
} else {
|
||||
// can't find what we're supposed to catch - move on.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (catchType == 0 or instanceOf(t, catchType, exception)) {
|
||||
|
Loading…
Reference in New Issue
Block a user