Skip to content

Commit

Permalink
fix: NPE in unused EcxHandler block removal code (#2086) (PR #2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitram84 authored Feb 15, 2024
1 parent 13607fc commit 5fbabde
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 5fbabde

Please sign in to comment.