Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 25829)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 25841)
@@ -432,4 +432,5 @@
 		String commandToRun = currentCommand.run;
 		final boolean tracks = currentCommand.tracks;
+		final ArrayList<Parameter> parameters = currentCommand.parameters;
 
 		for (Parameter parameter : currentCommand.parameters) {
@@ -516,5 +517,5 @@
 				osmWriter.footer();
 				osmWriter.flush();
-				for (Parameter parameter : currentCommand.parameters) {
+				for (Parameter parameter : parameters) {
 					if (!parameter.isOsm())
 						continue;
