Index: applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
===================================================================
--- applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java	(revision 18417)
+++ applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java	(revision 18678)
@@ -211,11 +211,15 @@
                         new LatLon(maxlat, maxlon));
 
-                    Main.worker.execute(new Runnable() {
-                        public void run() {
-                            BoundingXYVisitor bbox = new BoundingXYVisitor();
-                            bbox.visit(bounds);
-                            Main.map.mapView.recalculateCenterScale(bbox);
-                        }
-                    });
+                    // make sure this isn't called unless there *is* a MapView
+                    //
+                    if (Main.map != null && Main.map.mapView != null) {
+	                    Main.worker.execute(new Runnable() {
+	                        public void run() {
+	                            BoundingXYVisitor bbox = new BoundingXYVisitor();
+	                            bbox.visit(bounds);
+	                            Main.map.mapView.recalculateCenterScale(bbox);
+	                        }
+	                    });
+                    }
                 }
             } else if (command.equals("/add_node")) {
