Skip to content

Commit

Permalink
fix: NPE in unused EcxHandler block removal code (#2086)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitram84 committed Feb 15, 2024
1 parent 0c33d72 commit 3339401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ private static void removeUnusedExcHandlers(MethodNode mth, List<TryCatchBlockAt
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) {
Expand Down

0 comments on commit 3339401

Please sign in to comment.