test/jtreg-ext/requires/VMProps.java
changeset 51191 96fae3a62612
parent 50914 07498f5b6a96
child 51251 0a7a0a6dfa22
--- a/test/jtreg-ext/requires/VMProps.java	Tue Jul 24 11:37:43 2018 -0700
+++ b/test/jtreg-ext/requires/VMProps.java	Tue Jul 24 08:58:32 2018 -0700
@@ -432,7 +432,8 @@
                 System.getProperty("java.home") + "/release"))) {
             Properties properties = new Properties();
             properties.load(in);
-            return properties.getProperty("IMPLEMENTOR").replace("\"", "");
+            String implementorProperty = properties.getProperty("IMPLEMENTOR");
+            return (implementorProperty == null) ? "null" : implementorProperty.replace("\"", "");
         } catch (IOException e) {
             e.printStackTrace();
         }