Index: trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskListTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskListTest.java	(revision 15196)
+++ trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskListTest.java	(revision 15216)
@@ -2,8 +2,14 @@
 package org.openstreetmap.josm.actions.downloadtasks;
 
+import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
+
+import java.awt.geom.Area;
+import java.util.Collections;
 
 import org.junit.Rule;
 import org.junit.Test;
+import org.openstreetmap.josm.data.Bounds;
+import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
 import org.openstreetmap.josm.testutils.JOSMTestRules;
 
@@ -29,3 +35,21 @@
         assertTrue(new DownloadTaskList().getDownloadedPrimitives().isEmpty());
     }
+
+    /**
+     * Unit test of {@code DownloadTaskList#download} - empty cases.
+     * @throws Exception in case of error
+     */
+    @Test
+    public void testDownloadAreaEmpty() throws Exception {
+        DownloadTaskList list = new DownloadTaskList();
+        assertNull(list.download(false,
+                Collections.<Area>emptyList(), true, true, NullProgressMonitor.INSTANCE).get());
+        assertTrue(list.getDownloadedPrimitives().isEmpty());
+        assertNull(list.download(false,
+                Collections.<Area>emptyList(), false, false, NullProgressMonitor.INSTANCE).get());
+        assertTrue(list.getDownloadedPrimitives().isEmpty());
+        assertNull(list.download(false,
+                Collections.<Area>singletonList(new Area(new Bounds(0, 0, true).asRect())), false, false, NullProgressMonitor.INSTANCE).get());
+        assertTrue(list.getDownloadedPrimitives().isEmpty());
+    }
 }
