Skip to content

Commit f10bf6c

Browse files
Janmm14ItzSomebody
authored andcommitted
Fix NPE for finally blocks in RadonTransformerV2
1 parent b11f4b6 commit f10bf6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/javadeobfuscator/deobfuscator/transformers/special/RadonTransformerV2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public boolean canCheckEquality(JavaValue first, JavaValue second, Context conte
371371
&& ain.getPrevious() != null && ain.getPrevious() instanceof LabelNode) {
372372
TryCatchBlockNode nullCatch = null;
373373
for (TryCatchBlockNode tcbn : method.tryCatchBlocks) {
374-
if (tcbn.type.equals("java/lang/NullPointerException")
374+
if ("java/lang/NullPointerException".equals(tcbn.type)
375375
&& tcbn.start == ain.getPrevious() && tcbn.end == ain.getNext().getNext()
376376
&& tcbn.handler == ain.getNext().getNext().getNext().getNext()) {
377377
nullCatch = tcbn;
@@ -390,7 +390,7 @@ public boolean canCheckEquality(JavaValue first, JavaValue second, Context conte
390390
&& ain.getPrevious().getPrevious() != null && ain.getPrevious().getPrevious() instanceof LabelNode) {
391391
TryCatchBlockNode nullCatch = null;
392392
for (TryCatchBlockNode tcbn : method.tryCatchBlocks) {
393-
if (tcbn.type.equals("java/lang/NullPointerException")
393+
if ("java/lang/NullPointerException".equals(tcbn.type)
394394
&& tcbn.start == ain.getPrevious().getPrevious() && tcbn.end == ain.getNext().getNext()
395395
&& tcbn.handler == ain.getNext().getNext().getNext().getNext()) {
396396
nullCatch = tcbn;

0 commit comments

Comments
 (0)