Index: trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java	(revision 5387)
+++ trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java	(revision 5388)
@@ -262,5 +262,5 @@
             for (Iterator<ImageryInfo> iti = layers.iterator(); iti.hasNext(); ) {
                 List<Shape> shapes = iti.next().getBounds().getShapes();
-                if (shapes != null) {
+                if (shapes != null && !shapes.isEmpty()) {
                     boolean found = false;
                     for (Iterator<Shape> its = shapes.iterator(); its.hasNext() && !found; ) {
@@ -272,5 +272,5 @@
                 }
             }
-            
+
             if (layers.isEmpty()) {
                 return;
