Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 25200)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 25826)
@@ -323,5 +323,5 @@
 				}
 				ImageryInfo info = ((ImageryLayer)layer).getInfo();
-				String url = info.getUrl();
+				String url = info.getURL();
 				String itype = info.getImageryType().getUrlString();
 				loadParameter((url.equals("") ? itype : url), true);
@@ -431,4 +431,5 @@
 		setMode(Mode.PROCESSING);
 		String commandToRun = currentCommand.run;
+		final boolean tracks = currentCommand.tracks;
 
 		for (Parameter parameter : currentCommand.parameters) {
@@ -535,5 +536,5 @@
 					osmWriter.flush();
 				}
-				if (currentCommand.tracks) {
+				if (tracks) {
 					final GpxWriter gpxWriter = new GpxWriter(printWriter);
 					GpxFilter gpxFilter = new GpxFilter();
