Skip to content

Commit 424cebf

Browse files
committed
make sure getSystemProperties() is supported
1 parent bf74122 commit 424cebf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

visualvm/profiler/src/org/graalvm/visualvm/profiler/CalibrationSupport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ final class CalibrationSupport {
5252

5353
static boolean checkCalibration(Application app, Runnable before, Runnable after) {
5454
Jvm jvm = JvmFactory.getJVMFor(app);
55+
if (!jvm.isGetSystemPropertiesSupported()) return false;
5556
Properties properties = jvm.getSystemProperties();
5657
if (properties == null) return false;
5758

0 commit comments

Comments
 (0)