Fixed #1407 NullPointer on Save as in BinaryData SWF subtree

This commit is contained in:
Jindra Petřík
2021-02-11 20:05:23 +01:00
parent b82c83c2ad
commit e450f7a082
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -951,7 +951,7 @@ public class Main {
}
public static void saveFile(SWF swf, String outfile, SaveFileMode mode, ExeExportMode exeExportMode) throws IOException {
if (mode == SaveFileMode.SAVEAS && !swf.swfList.isBundle()) {
if (mode == SaveFileMode.SAVEAS && swf.swfList!= null /*SWF in binarydata has null*/ && !swf.swfList.isBundle()) {
swf.setFile(outfile);
swf.swfList.sourceInfo.setFile(outfile);
}