diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionList.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionList.java index 2e7ba0c83..63b11eddb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionList.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionList.java @@ -137,6 +137,12 @@ public class ActionList extends ArrayList { } return null; } + + @Override + public void remove() + { + throw new UnsupportedOperationException(); + } }; } diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 69046ac8f..2ee307356 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -267,12 +267,12 @@ public class CommandLineArgumentParser { double zoom = 1; Selection selection = new Selection(); Selection selectionIds = new Selection(); - String nextParam; + String nextParam = null, nextParamOriginal = null; OUTER: while (true) { - nextParam = args.remove(); - if (nextParam != null) { - nextParam = nextParam.toLowerCase(); + nextParamOriginal = args.remove(); + if (nextParamOriginal != null) { + nextParam = nextParamOriginal.toLowerCase(); } switch (nextParam) { case "-selectid": @@ -360,7 +360,7 @@ public class CommandLineArgumentParser { printCmdLineUsage(); System.exit(0); } else if (args.isEmpty()) { - return nextParam; + return nextParamOriginal; // file names should be the original one } else { badArguments(); }