Skip to content
Permalink
Browse files

#1484 AS import error import on commandline fix

  • Loading branch information
jindrapetrik committed Sep 8, 2018
1 parent 797c9b1 commit 16f0bfc2db2d2426db63b54c3b6c053b81c19fcd
Showing with 6 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +5 −1 src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java
@@ -28,6 +28,7 @@ All notable changes to this project will be documented in this file.
- No disabling autoOpenLoadedSWFs checkbox when ActiveX player not available (User can use Run button)
- Displaying contents of local variables (AS3) while debugging
- #1415 freezing on manually closing Flash player debug session
- #1484 AS import error printout on commandline (NullPointer)

## [11.1.0] - 2018-05-24
### Added
@@ -3651,7 +3651,11 @@ private static void replaceAS3(String as, ScriptPack pack) throws IOException, I
pack.abc.replaceScriptPack(scriptReplacer, pack, as);
} catch (As3ScriptReplaceException asre) {
for (As3ScriptReplaceExceptionItem item : asre.getExceptionItems()) {
logger.log(Level.SEVERE, "%error% on line %line%, column %col%, file: %file%".replace("%error%", item.getMessage()).replace("%line%", Long.toString(item.getLine())).replace("%file%", item.getFile()).replace("%col%", "" + item.getCol()));
String r = "%error% on line %line%, column %col%, file: %file%".replace("%error%", "" + item.getMessage());
r = r.replace("%line%", Long.toString(item.getLine()));
r = r.replace("%file%", "" + item.getFile());
r = r.replace("%col%", "" + item.getCol());
logger.log(Level.SEVERE, r);
}
System.exit(1);
}

0 comments on commit 16f0bfc

Please sign in to comment.
You can’t perform that action at this time.