Index: trunk/test/unit/org/openstreetmap/josm/command/SelectCommandTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/command/SelectCommandTest.java	(revision 15323)
+++ trunk/test/unit/org/openstreetmap/josm/command/SelectCommandTest.java	(revision 15324)
@@ -161,3 +161,11 @@
             .verify();
     }
+
+    /**
+     * Unit test of {@link SelectCommand#SelectCommand}.
+     */
+    @Test(expected = IllegalArgumentException.class)
+    public void testConstructorIAE() {
+        new SelectCommand(new DataSet(), Arrays.asList(new OsmPrimitive[] {null}));
+    }
 }
