If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.

#2085 java.lang.NullPointerException
Author:
zolaz

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3Decompilation
State: closed 

Hello....whenever i try to read AS Script package from this SWF, i'm always facing error
like this. Also i've upload the SWF file in this post. Thanks in advance for your.
24/09/2023 12:58:09 SEVERE Decompilation error in: Combat/Battle.endBattleAndCallAmf
java.lang.NullPointerException: Cannot invoke
"com.jpexs.decompiler.graph.GraphTargetItem.isCompileTime()" because "v.value" is null
at
com.jpexs.decompiler.flash.abc.avm2.model.NewObjectAVM2Item.isCompileTime(NewObjectAVM2Ite
m.java:126)
at com.jpexs.decompiler.graph.GraphTargetItem.isCompileTime(GraphTargetItem.java:376)
at
com.jpexs.decompiler.flash.abc.avm2.model.LocalRegAVM2Item.<init>(LocalRegAVM2Item.java:53
)
at
com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.GetLocalTypeIns.translate(GetLo
calTypeIns.java:186)
at
com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition.translate(Instructi
onDefinition.java:218)
at com.jpexs.decompiler.flash.abc.avm2.AVM2Code.toSourceOutput(AVM2Code.java:1634)
at
com.jpexs.decompiler.flash.abc.avm2.graph.AVM2GraphSource.translatePart(AVM2GraphSource.ja
va:116)
at com.jpexs.decompiler.graph.Graph.printGraph(Graph.java:2281)
at com.jpexs.decompiler.graph.Graph.printGraph(Graph.java:1535)
at com.jpexs.decompiler.graph.Graph.translate(Graph.java:655)
at
com.jpexs.decompiler.flash.abc.avm2.graph.AVM2Graph.translateViaGraph(AVM2Graph.java:656)
at com.jpexs.decompiler.flash.abc.avm2.AVM2Code.toGraphTargetItems(AVM2Code.java:2063)
at com.jpexs.decompiler.flash.abc.types.MethodBody$1.call(MethodBody.java:311)
at com.jpexs.decompiler.flash.abc.types.MethodBody$1.call(MethodBody.java:303)
at com.jpexs.helpers.CancellableWorker$3.doInBackground(CancellableWorker.java:152)
at com.jpexs.helpers.CancellableWorker$1.call(CancellableWorker.java:61)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at com.jpexs.helpers.CancellableWorker.run(CancellableWorker.java:78)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1623)

What FFDec version do you use?
I tried current nightly and also current stable (18.5.0),
this does not happen to me.
Could you tell exact steps how to reproduce?
And the FFDec version.
Thank you.
i'm using FFDec latest version 18.5.0 before, but after im post here, i try to download
nightly and using it and the problem not appear anymore. Sorry for my false info and thx
for your reply.
State: new→closed