Index: trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 12123)
+++ trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 12124)
@@ -333,8 +333,14 @@
         KeyStore ks = getRootKeystore();
         // Look for certificate to install
-        String alias = ks.getCertificateAlias(trustedCert.getTrustedCertificate());
-        if (alias != null) {
-            // JOSM certificate found, return
-            Main.debug(tr("JOSM localhost certificate found in {0} keystore: {1}", WINDOWS_ROOT, alias));
+        try {
+            String alias = ks.getCertificateAlias(trustedCert.getTrustedCertificate());
+            if (alias != null) {
+                // JOSM certificate found, return
+                Main.debug(tr("JOSM localhost certificate found in {0} keystore: {1}", WINDOWS_ROOT, alias));
+                return false;
+            }
+        } catch (ArrayIndexOutOfBoundsException e) {
+            // catch error of JDK-8172244 as bug seems to not be fixed anytime soon
+            Main.error(e, "JDK-8172244 occured. Abort HTTPS setup");
             return false;
         }
