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 issues](/flash/images/issue_list.png)
#1408 Unable to save edited .SWF - Nullpointer on SaveAs
Author:
vontreece
![user user](/flash/images/user.png)
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed ![Help](/flash/images/help.png)
![Help](/flash/images/help.png)
> What steps will reproduce the problem?
Simply attempting to save or overwrite a .SWF
> What is the expected output? What do you see instead?
Expecting for my changes to be saved, instead I'm presented with the following error:
SEVERE: Uncaught exception in thread: AWT-EventQueue-0
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
I am on Windows 10 Home 64bit and I am currently on v.10.0.0 Nightly Build 1655.
(Though I have tried it on the stable version as well with the exact same results.)
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
I've attached the .SWF in question.
Here is the log from the error:
13/07/2017 03:51:34 SEVERE Uncaught exception in thread: AWT-EventQueue-0
java.lang.NullPointerException
at com.jpexs.decompiler.flash.gui.Main.saveFile(Main.java:954)
at com.jpexs.decompiler.flash.gui.Main.saveFileDialog(Main.java:1441)
at com.jpexs.decompiler.flash.gui.MainFrameMenu.saveAs(MainFrameMenu.java:196)
at
com.jpexs.decompiler.flash.gui.MainFrameMenu.saveAsActionPerformed(MainFrameMenu.java:183)
at
org.pushingpixels.flamingo.api.common.AbstractCommandButton.fireActionPerformed(AbstractCo
mmandButton.java:616)
at
org.pushingpixels.flamingo.api.common.AbstractCommandButton$ActionHandler.actionPerformed(
AbstractCommandButton.java:568)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at
org.pushingpixels.flamingo.api.common.model.ActionRepeatableButtonModel.setPressed(ActionR
epeatableButtonModel.java:123)
at
org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonListener.mouseReleased(Bas
icCommandButtonListener.java:147)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
![Download](/flash/images/disk.png)
Was your SWF file inside a BinaryData tag?
If it was the case, then it's fixed in nightly 1793.
See issue #1407, this seems to be the same problem.
State: new→upgraded
Title: Unable to save edited .SWF→Unable to save edited .SWF - Nullpointer on SaveAs
Title: Unable to save edited .SWF→Unable to save edited .SWF - Nullpointer on SaveAs
State: upgraded→closed