fix: NPE in unused EcxHandler block removal code (#2086) (PR #2104)

This commit is contained in:
nitram84
2024-02-15 18:57:30 +01:00
committed by GitHub
parent 13607fc8b6
commit 5fbabdefca
@@ -600,7 +600,7 @@ public class BlockExceptionHandler {
for (ExceptionHandler eh : mth.getExceptionHandlers()) {
boolean notProcessed = true;
BlockNode handlerBlock = eh.getHandlerBlock();
if (blocks.get(handlerBlock)) {
if (handlerBlock == null || blocks.get(handlerBlock)) {
continue;
}
for (TryCatchBlockAttr tcb : tryBlocks) {