Index: trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 13465)
+++ trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 13466)
@@ -704,9 +704,11 @@
             // Great, but our WinRegistry only handles REG_SZ type, so we have to check the Version key
             String version = WinRegistry.readString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full", "Version");
-            Matcher m = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+.*)?").matcher(version);
-            if (m.matches()) {
-                int maj = Integer.valueOf(m.group(1));
-                int min = Integer.valueOf(m.group(2));
-                return (maj == 4 && min >= 5) || maj > 4;
+            if (version != null) {
+                Matcher m = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+.*)?").matcher(version);
+                if (m.matches()) {
+                    int maj = Integer.valueOf(m.group(1));
+                    int min = Integer.valueOf(m.group(2));
+                    return (maj == 4 && min >= 5) || maj > 4;
+                }
             }
         } catch (IllegalAccessException | InvocationTargetException | NumberFormatException e) {
