If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#2676 Morphshape creating or editing fails with java.lang.IllegalArgumentException: input == null!
Author:
BigBeautifulBill
BigBeautifulBillDate created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: ImportMorphshapes
State: closed 

> What steps will reproduce the problem?
Try to create or edit existing morphshape with provided SVG attachments via AddTag->Create
morphshape from files or replacing start/end shape in existing tag. This happens even if I
try to create new morphshape in completely clean project.
Crash log attached.
> What is the expected output? What do you see instead?
Correctly created morphshape.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
25.1.3 nightly 3561, but it reproduces on stable 25.1.3 as well.
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
In addition to the said problems, if I follow the "AddTag" path, random empty shapes are
created with 0x0 bounds and insanely large center coordinates, 107374182.35 for both
dimensions (for some reason this number is exactly half of maxint32 with last digit thrown
out (107374182)). Also, when I tried to edit this broken shape with a built-in editor -
the app froze completely while consuming an indecent amount of CPU.
I even tried to do this with newly created SVG images with a same result, removing first
dot from filename didn't help either, so I assume this is not a problem with file path. I
just hope you would be able to make sense of WTF is going on there.
(Sorry for typo in a nightly version, 3461 is the correct one)
Ok, after some code reading and following the crashlog I found this:
1. com.jpexs.decompiler.flash.gui.MainPanel.replaceMorphShape(MainPanel.java:5190) - uses
correct type of showImportFileChooser dialog with 4 arguments (filter string, TRUE for
preview, AppStrings-translated title for dilaog window, and name of .PNG icon from app's
resources, "importmorphshape" in this case).
2. Then, it proceeds through some operations to next import dialog - which does not have
4th argument, so it uses 3-argument form (filter, TRUE for preview, FALSE for title, and
icon's name)(at
com.jpexs.decompiler.flash.gui.MainPanel.showImportFileChooser(MainPanel.java:5662)). But
it was clearly intended to use the 4-argument form, because last argument is still
AppStrings-translated title, not icon's name.
And thus the app tries to find an icon with a name "Select end shape. Click cancel to make
end shape same as the start shape.16.png", which obviously does not exist. So, I guess
simple addition of the 4th argument to MainPanel.java:5232 should fix the problem.
Thank you for pointing out the error location.
It is fixed in nightly 3464.
State: new→upgraded
Everything works now! Thank you for quick fix.
State: upgraded→closed
1790.start.svg