Index: trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionsTest.java	(revision 18030)
+++ trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionsTest.java	(revision 18030)
@@ -0,0 +1,17 @@
+// License: GPL. For details, see LICENSE file.
+package org.openstreetmap.josm.data.projection;
+
+import static org.junit.Assert.assertNull;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit tests of {@link Projections}.
+ */
+class ProjectionsTest {
+
+    @Test
+    void testGetProjectionByCode_nullSafe() {
+        assertNull(Projections.getProjectionByCode(null));
+    }
+}
