JPEXS Free Flash Decompiler Issue Tracker

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.

List of issuesList of issues

#2514 Direct editation of AS3 Namespaces does not work
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new Help

> What steps will reproduce the problem? Compile following AS3 script in FFDec: ``` package { public class Main { public function Main() { super(); } } } use namespace ns; class MyClass { ns var a:int = 5; } namespace ns = "xxx"; ``` > What is the expected output? What do you see instead? I expect it to compile. Instead: 18/08/2025 19:32:33 SEVERE null java.lang.NullPointerException: Cannot invoke "com.jpexs.decompiler.flash.abc.types.Namespace.getName(com.jpexs.decompiler.flash.abc.avm 2.AVM2ConstantPool)" because the return value of "com.jpexs.decompiler.flash.abc.avm2.AVM2ConstantPool.getNamespace(int)" is null at com.jpexs.decompiler.flash.abc.avm2.parser.script.NamespaceItem.resolveCustomNs(NamespaceI tem.java:178) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateTraitsPhase1 (AVM2SourceGenerator.java:2195) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateClass(AVM2So urceGenerator.java:789) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateClass(AVM2So urceGenerator.java:929) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateTraitsPhase4 (AVM2SourceGenerator.java:2009) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateScriptInfo(A VM2SourceGenerator.java:2401) at com.jpexs.decompiler.flash.abc.avm2.parser.script.ActionScript3Parser.addScriptFromTree(Ac tionScript3Parser.java:3001) at com.jpexs.decompiler.flash.abc.avm2.parser.script.ActionScript3Parser.addScript(ActionScri pt3Parser.java:3038) at com.jpexs.decompiler.flash.abc.avm2.parser.script.ActionScript3Parser.compile(ActionScript 3Parser.java:3083) at com.jpexs.decompiler.flash.importers.FFDecAs3ScriptReplacer.replaceScript(FFDecAs3ScriptRe placer.java:76) at com.jpexs.decompiler.flash.abc.ABC.replaceScriptPack(ABC.java:2309) at com.jpexs.decompiler.flash.gui.abc.ABCPanel.saveDecompiled(ABCPanel.java:2069) at com.jpexs.decompiler.flash.gui.abc.ABCPanel.saveDecompiledButtonActionPerformed(ABCPanel.j ava:2129) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:40 7) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener. java:279) at org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverBu ttonListener.java:124) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6576) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3404) at java.desktop/java.awt.Component.processEvent(Component.java:6341) at java.desktop/java.awt.Container.processEvent(Container.java:2260) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4958) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4790) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4916) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4559) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4500) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2304) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2671) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4790) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:725) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:702) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java: 203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124 ) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: 113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) > What version of the product are you using? Is it "nightly build"? Which operating system do you have? 24.0.1 nightly 3279, Windows 11 > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you.