Index: trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 17685)
+++ trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 17688)
@@ -529,5 +529,9 @@
         // Use more low-level method to find the installed fonts.
         List<String> fontsAvail = new ArrayList<>();
-        Path fontPath = FileSystems.getDefault().getPath(getSystemEnv("SYSTEMROOT"), "Fonts");
+        String systemRoot = getSystemEnv("SYSTEMROOT");
+        if (systemRoot == null) {
+            return fontsAvail;
+        }
+        Path fontPath = FileSystems.getDefault().getPath(systemRoot, "Fonts");
         try (DirectoryStream<Path> ds = Files.newDirectoryStream(fontPath)) {
             for (Path p : ds) {
