Catch block should not larger as the parent.

This commit is contained in:
Volker Berlin 2022-05-28 21:40:31 +02:00
parent b4828b4659
commit d182bace9a
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -1207,7 +1207,7 @@ class BranchManager {
}
}
if( parsedBlock.startPosition == gotoPos && parsedBlock.op == JavaBlockOperator.GOTO && parsedBlock.startPosition < parsedBlock.endPosition ) {
if( parsedBlock.startPosition == gotoPos && parsedBlock.op == JavaBlockOperator.GOTO && parsedBlock.startPosition < parsedBlock.endPosition && parsedBlock.endPosition <= endPos ) {
parsedOperations.remove( idx );
endPos = parsedBlock.endPosition;
break;