Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 28581)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 28618)
@@ -223,6 +223,6 @@
 	public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame)
 	{
+		currentMapFrame = newFrame;
 		if (oldFrame == null && newFrame != null) {
-			currentMapFrame = newFrame;
 			JToolBar tb = new JToolBar();
 			tb.setLayout(new BorderLayout());
