8261711: Clhsdb "versioncheck true" throws NPE every time

Reviewed-by: amenkov, sspitsyn
This commit is contained in:
Chris Plummer 2021-02-16 22:32:10 +00:00
parent 55d7bbcec0
commit e7e20d4ec6

View File

@ -1157,7 +1157,7 @@ public class CommandProcessor {
(System.getProperty("sun.jvm.hotspot.runtime.VM.disableVersionCheck") == null));
} else if (t.countTokens() == 1) {
if (Boolean.valueOf(t.nextToken()).booleanValue()) {
System.setProperty("sun.jvm.hotspot.runtime.VM.disableVersionCheck", null);
System.clearProperty("sun.jvm.hotspot.runtime.VM.disableVersionCheck");
} else {
System.setProperty("sun.jvm.hotspot.runtime.VM.disableVersionCheck", "true");
}