Skip to content

Commit df4ca26

Browse files
committed
SaModel cannot be constructed without JvmJvmstatModel
1 parent 12cb7ae commit df4ca26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

visualvm/sa/src/org/graalvm/visualvm/sa/SaModelProvider.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ public SaModel createModelFor(DataSource ds) {
5757
if (Host.LOCALHOST.equals(app.getHost())) {
5858
JvmJvmstatModel jvmstat = JvmJvmstatModelFactory.getJvmstatModelFor(app);
5959

60-
if (jvmstat != null && Utilities.isWindows()) {
60+
if (jvmstat == null) {
61+
return null;
62+
}
63+
if (Utilities.isWindows()) {
6164
// on Windows, SA can only attach to the process of the same
6265
// architecture ( 32bit / 64bit )
6366
Boolean this64bitArch = is64BitArchitecture();

0 commit comments

Comments
 (0)