GraxCode / threadtear

Multifunctional java deobfuscation tool suite
GNU General Public License v3.0
899 stars 123 forks source link

ZKM null pointer exception on flow obfuscation removal #37

Closed barrN closed 4 years ago

barrN commented 4 years ago

Describe what's not working Running the ZKM deobfuscation tool, specifically "Flow obfuscation removal (ZKM)" results in a null pointer exception.

Java archive Link to archive: https://easyupload.io/dbiftd

Log / Screenshots

Exception in thread "Execution-Thread" java.lang.NullPointerException
        at me.nov.threadtear.execution.zkm.FlowObfuscationZKM.removeZKMJumps(FlowObfuscationZKM.java:39)
        at java.util.ArrayList.forEach(Unknown Source)
        at me.nov.threadtear.execution.zkm.FlowObfuscationZKM.lambda$execute$2(FlowObfuscationZKM.java:32)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
        at java.util.HashMap$ValueSpliterator.forEachRemaining(Unknown Source)
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
        at java.util.stream.ReferencePipeline.forEach(Unknown Source)
        at me.nov.threadtear.execution.zkm.FlowObfuscationZKM.execute(FlowObfuscationZKM.java:32)
        at me.nov.threadtear.ThreadtearCore.lambda$run$5(ThreadtearCore.java:62)
        at java.util.ArrayList.forEach(Unknown Source)
        at me.nov.threadtear.ThreadtearCore.run(ThreadtearCore.java:59)
        at me.nov.threadtear.Threadtear.lambda$run$5(Threadtear.java:157)
        at java.lang.Thread.run(Unknown Source)

Please complete the following information: Running on latest JDK, 14.

GraxCode commented 4 years ago

Did you use another task before? Seems like "null" ended up in the instruction list...

barrN commented 4 years ago

It was a fresh workspace with a fresh jar (linked one). I didn't run anything before. It happens every so often - I haven't been able to recreate it today, but I did get the same error last night.

May be user error on my part, I will close it and come back to it if it keep happening.

Thanks!